diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-10-03 01:36:31 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-10-20 13:38:37 +0200 |
commit | 2790bda4f8d6452e65e28935cee62e1ab5468acf (patch) | |
tree | 8ab29190f72c18dac99a86abfe1341d425409441 /lib | |
parent | b71d1d3616115653eb928489093fc2581d830cf5 (diff) | |
download | nextcloud-server-2790bda4f8d6452e65e28935cee62e1ab5468acf.tar.gz nextcloud-server-2790bda4f8d6452e65e28935cee62e1ab5468acf.zip |
Activate the query logger on connect
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/db.php | 1 |
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); |