summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-22 14:13:59 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-22 14:13:59 +0100
commit7f2b3dbfd227e8f7042f735c2c958465dd0caa03 (patch)
treee7e0ecbb6cbc2909b2eb7f3915bf101e172249aa /apps
parent3a0c4d11d9bc7bb28063c341341cac410d7aa920 (diff)
parent1a8a667863bcf2213190f30e862116f4304ef4a5 (diff)
downloadnextcloud-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.php3
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]);
}