Activate the query logger on connect

This commit is contained in:
Robin Appelman 2014-10-03 01:36:31 +02:00
parent b71d1d3616
commit 2790bda4f8
1 changed files with 1 additions and 0 deletions

View File

@ -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);