Skip to content

Commit

Permalink
Merge pull request #43542 from nextcloud/fix/db/long-transaction-exce…
Browse files Browse the repository at this point in the history
…ption-message

fix(db): Unify long transaction log/exception message
  • Loading branch information
blizzz authored Feb 13, 2024
2 parents 56640c7 + aef28e1 commit fd04f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/DB/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ public function commit() {
$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;
Expand Down

0 comments on commit fd04f05

Please sign in to comment.