diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-02-13 10:13:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 10:13:14 +0100 |
commit | fd04f058c8899612adb174839ebe423f3e47539f (patch) | |
tree | 010578bed7ff8c96589d98e4a288ed2acd143cd7 | |
parent | 56640c7fdd1a8323acc3910b07baf8d9ce3d651c (diff) | |
parent | aef28e191af088b2e5f6bf9c6a75d880bdd7231d (diff) | |
download | nextcloud-server-fd04f058c8899612adb174839ebe423f3e47539f.tar.gz nextcloud-server-fd04f058c8899612adb174839ebe423f3e47539f.zip |
Merge pull request #43542 from nextcloud/fix/db/long-transaction-exception-message
fix(db): Unify long transaction log/exception message
-rw-r--r-- | lib/private/DB/Connection.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php index ed322bc90f0..6b875bc42cc 100644 --- a/lib/private/DB/Connection.php +++ b/lib/private/DB/Connection.php @@ -671,7 +671,7 @@ class Connection extends PrimaryReadReplicaConnection { $timeTook = microtime(true) - $this->transactionActiveSince; $this->transactionActiveSince = null; if ($timeTook > 1) { - $this->logger->warning('Transaction took longer than 1s: ' . $timeTook, ['exception' => new \Exception('Long running transaction')]); + $this->logger->warning('Transaction took ' . $timeTook . 's', ['exception' => new \Exception('Transaction took ' . $timeTook . 's')]); } } return $result; |