aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-10-03 01:36:31 +0200
committerRobin Appelman <icewind@owncloud.com>2014-10-20 13:38:37 +0200
commit2790bda4f8d6452e65e28935cee62e1ab5468acf (patch)
tree8ab29190f72c18dac99a86abfe1341d425409441 /lib
parentb71d1d3616115653eb928489093fc2581d830cf5 (diff)
downloadnextcloud-server-2790bda4f8d6452e65e28935cee62e1ab5468acf.tar.gz
nextcloud-server-2790bda4f8d6452e65e28935cee62e1ab5468acf.zip
Activate the query logger on connect
Diffstat (limited to 'lib')
-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);