Skip to content

Commit aa32738

Browse files
committed
REMOVEME: disable log dir writable check to get query logs
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
1 parent 6822738 commit aa32738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/DB/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ public function executeStatement($sql, array $params = [], array $types = []): i
473473

474474
protected function logQueryToFile(string $sql, array $params): void {
475475
$logFile = $this->systemConfig->getValue('query_log_file');
476-
if ($logFile !== '' && is_writable(dirname($logFile)) && (!file_exists($logFile) || is_writable($logFile))) {
476+
if ($logFile !== '' && (!file_exists($logFile) || is_writable($logFile))) {
477477
$prefix = '';
478478
if ($this->systemConfig->getValue('query_log_file_requestid') === 'yes') {
479479
$prefix .= Server::get(IRequestId::class)->getId() . "\t";

0 commit comments

Comments
 (0)