Activate the query logger on connect
This commit is contained in:
parent
b71d1d3616
commit
2790bda4f8
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ class OC_DB {
|
|||
|
||||
try {
|
||||
self::$connection = $factory->getConnection($type, $connectionParams);
|
||||
self::$connection->getConfiguration()->setSQLLogger(\OC::$server->getQueryLogger());
|
||||
} catch(\Doctrine\DBAL\DBALException $e) {
|
||||
OC_Log::write('core', $e->getMessage(), OC_Log::FATAL);
|
||||
OC_User::setUserId(null);
|
||||
|
|
Loading…
Reference in a new issue