aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2024-05-25 09:07:43 -0400
committerGitHub <noreply@github.com>2024-05-25 09:07:43 -0400
commit48b47f7903357dca800ea091efea05c27c269a0a (patch)
treeda0b9f199e9228b1d7676eb14e260a1b1146e4c6 /lib/private
parentae4a6e8d4454b7896d0e40f367096a26d999dbf0 (diff)
downloadnextcloud-server-48b47f7903357dca800ea091efea05c27c269a0a.tar.gz
nextcloud-server-48b47f7903357dca800ea091efea05c27c269a0a.zip
fix(db): Log loong transaction times at debug level
Signed-off-by: Josh <josh.t.richards@gmail.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/DB/Connection.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php
index 8bf9e6e99b9..81432d9884f 100644
--- a/lib/private/DB/Connection.php
+++ b/lib/private/DB/Connection.php
@@ -680,7 +680,7 @@ class Connection extends PrimaryReadReplicaConnection {
$timeTook = microtime(true) - $this->transactionActiveSince;
$this->transactionActiveSince = null;
if ($timeTook > 1) {
- $this->logger->warning('Transaction took ' . $timeTook . 's', ['exception' => new \Exception('Transaction took ' . $timeTook . 's')]);
+ $this->logger->debug('Transaction took ' . $timeTook . 's', ['exception' => new \Exception('Transaction took ' . $timeTook . 's')]);
}
}
return $result;
@@ -692,7 +692,7 @@ class Connection extends PrimaryReadReplicaConnection {
$timeTook = microtime(true) - $this->transactionActiveSince;
$this->transactionActiveSince = null;
if ($timeTook > 1) {
- $this->logger->warning('Transaction rollback took longer than 1s: ' . $timeTook, ['exception' => new \Exception('Long running transaction rollback')]);
+ $this->logger->debug('Transaction rollback took longer than 1s: ' . $timeTook, ['exception' => new \Exception('Long running transaction rollback')]);
}
}
return $result;