aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/db.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/db.php b/lib/private/db.php
index 80163415a90..ba069977d35 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -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);