diff options
author | Robin Appelman <robin@icewind.nl> | 2024-04-11 17:08:34 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-07-24 15:35:07 +0200 |
commit | 7fbb98187780ecf19a415366f9089c9b88f41362 (patch) | |
tree | e5ed52612be2cce66508ca3d66a6bce171b591d0 /lib/private/DB/ConnectionAdapter.php | |
parent | b83948392f096c5d13cbb76bb19e56d2596ac5e0 (diff) | |
download | nextcloud-server-7fbb98187780ecf19a415366f9089c9b88f41362.tar.gz nextcloud-server-7fbb98187780ecf19a415366f9089c9b88f41362.zip |
feat: add additional logging for database errors
including the stack trace of the current database transaction
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/DB/ConnectionAdapter.php')
-rw-r--r-- | lib/private/DB/ConnectionAdapter.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/DB/ConnectionAdapter.php b/lib/private/DB/ConnectionAdapter.php index b7225169e4c..88083711195 100644 --- a/lib/private/DB/ConnectionAdapter.php +++ b/lib/private/DB/ConnectionAdapter.php @@ -240,4 +240,8 @@ class ConnectionAdapter implements IDBConnection { public function getServerVersion(): string { return $this->inner->getServerVersion(); } + + public function logDatabaseException(\Exception $exception) { + $this->inner->logDatabaseException($exception); + } } |