aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB/Connection.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-04-04 15:35:31 +0200
committerRobin Appelman <robin@icewind.nl>2022-04-04 18:12:30 +0200
commit1537c3d23b95a45332433b3c8bea000922db97e7 (patch)
treece7cb84199478ae9b14d41a1a94c36325d304393 /lib/private/DB/Connection.php
parent57ecf55e0f91f28b7b1665bb9765a1f58a285aca (diff)
downloadnextcloud-server-1537c3d23b95a45332433b3c8bea000922db97e7.tar.gz
nextcloud-server-1537c3d23b95a45332433b3c8bea000922db97e7.zip
record backtrace when profiling db requests
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/DB/Connection.php')
-rw-r--r--lib/private/DB/Connection.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php
index 2e38b1ddf5e..22c2bbbb793 100644
--- a/lib/private/DB/Connection.php
+++ b/lib/private/DB/Connection.php
@@ -42,7 +42,6 @@ use Doctrine\DBAL\Driver;
use Doctrine\DBAL\Exception;
use Doctrine\DBAL\Exception\ConstraintViolationException;
use Doctrine\DBAL\Exception\NotNullConstraintViolationException;
-use Doctrine\DBAL\Logging\DebugStack;
use Doctrine\DBAL\Platforms\MySQLPlatform;
use Doctrine\DBAL\Platforms\OraclePlatform;
use Doctrine\DBAL\Platforms\PostgreSQL94Platform;
@@ -113,7 +112,7 @@ class Connection extends \Doctrine\DBAL\Connection {
if ($profiler->isEnabled()) {
$this->dbDataCollector = new DbDataCollector($this);
$profiler->add($this->dbDataCollector);
- $debugStack = new DebugStack();
+ $debugStack = new BacktraceDebugStack();
$this->dbDataCollector->setDebugStack($debugStack);
$this->_config->setSQLLogger($debugStack);
}