mirror of
https://github.com/nextcloud/server.git
synced 2024-09-14 00:02:46 +02:00
fix(db): Unify long transaction log/exception message
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
9a94df01d6
commit
aef28e191a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user