diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-22 14:13:59 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-22 14:13:59 +0100 |
commit | 7f2b3dbfd227e8f7042f735c2c958465dd0caa03 (patch) | |
tree | e7e0ecbb6cbc2909b2eb7f3915bf101e172249aa /apps | |
parent | 3a0c4d11d9bc7bb28063c341341cac410d7aa920 (diff) | |
parent | 1a8a667863bcf2213190f30e862116f4304ef4a5 (diff) | |
download | nextcloud-server-7f2b3dbfd227e8f7042f735c2c958465dd0caa03.tar.gz nextcloud-server-7f2b3dbfd227e8f7042f735c2c958465dd0caa03.zip |
Merge pull request #22555 from owncloud/jenkins-19978
Show username when writing "Insufficient storage" into owncloud.log
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/connector/sabre/exceptionloggerplugin.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/connector/sabre/exceptionloggerplugin.php b/apps/dav/lib/connector/sabre/exceptionloggerplugin.php index b514a917556..1052c56e968 100644 --- a/apps/dav/lib/connector/sabre/exceptionloggerplugin.php +++ b/apps/dav/lib/connector/sabre/exceptionloggerplugin.php @@ -94,6 +94,8 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin { $message = "HTTP/1.1 {$ex->getHTTPCode()} $message"; } + $user = \OC_User::getUser(); + $exception = [ 'Message' => $message, 'Exception' => $exceptionClass, @@ -101,6 +103,7 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin { 'Trace' => $ex->getTraceAsString(), 'File' => $ex->getFile(), 'Line' => $ex->getLine(), + 'User' => $user, ]; $this->logger->log($level, 'Exception: ' . json_encode($exception), ['app' => $this->appName]); } |