Skip to content

Commit 9cc5f84

Browse files
committed
Fix issue #624
1 parent 0e29ced commit 9cc5f84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Panel/SqlLogPanel.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ public function initialize()
6464
$logger = new DebugLog($logger, $name, $includeSchemaReflection);
6565

6666
$connection->logQueries(true);
67-
$connection->setLogger($logger);
67+
if (method_exists($connection, 'setLogger')) {
68+
$connection->setLogger($logger);
69+
}
6870
$this->_loggers[] = $logger;
6971
}
7072
}

0 commit comments

Comments
 (0)