summaryrefslogtreecommitdiffstats
path: root/lib/private/Log/File.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Log/File.php')
-rw-r--r--lib/private/Log/File.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Log/File.php b/lib/private/Log/File.php
index be8b72b3a3f..4c7ef446a05 100644
--- a/lib/private/Log/File.php
+++ b/lib/private/Log/File.php
@@ -14,6 +14,7 @@
* @author Thomas Müller <thomas.mueller@tmit.eu>
* @author Thomas Pulzer <t.pulzer@kniel.de>
* @author Vincent Petry <pvince81@owncloud.com>
+ * @author Roger Szabo <roger.szabo@web.de>
*
* @license AGPL-3.0
*
@@ -101,6 +102,7 @@ class File {
} else {
$user = '--';
}
+ $userAgent = $request->getHeader('User-Agent') ?: '--';
$version = $config->getValue('version', '');
$entry = compact(
'reqId',
@@ -112,6 +114,7 @@ class File {
'method',
'url',
'user',
+ 'userAgent',
'version'
);
$entry = json_encode($entry);