aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Log
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-06-21 18:49:08 +0200
committerGitHub <noreply@github.com>2022-06-21 18:49:08 +0200
commitcf5452e6339c7de25be6f350f81038bc79e56aff (patch)
tree69724b7cccf220e2e015f729d2e5fcf3d6197cd6 /lib/private/Log
parent07ab8b3e677715b520ef259d41c415d28e9638e9 (diff)
parent1e7d924c61f312364827af1014e765d98e71ac05 (diff)
downloadnextcloud-server-cf5452e6339c7de25be6f350f81038bc79e56aff.tar.gz
nextcloud-server-cf5452e6339c7de25be6f350f81038bc79e56aff.zip
Merge pull request #32242 from nextcloud/fix-logging-data-array
Fix logging data context to file
Diffstat (limited to 'lib/private/Log')
-rw-r--r--lib/private/Log/LogDetails.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Log/LogDetails.php b/lib/private/Log/LogDetails.php
index 3353ea3f4cc..b3544572708 100644
--- a/lib/private/Log/LogDetails.php
+++ b/lib/private/Log/LogDetails.php
@@ -5,6 +5,7 @@
* @author Arthur Schiwon <blizzz@arthur-schiwon.de>
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
* @author Julius Härtl <jus@bitgrid.net>
+ * @author Thomas Citharel <nextcloud@tcit.fr>
*
* @license GNU AGPL version 3 or any later version
*
@@ -90,8 +91,9 @@ abstract class LogDetails {
$entry['exception'] = $message;
$entry['message'] = $message['CustomMessage'] !== '--' ? $message['CustomMessage'] : $message['Message'];
} else {
- $entry['data'] = $message;
$entry['message'] = $message['message'] ?? '(no message provided)';
+ unset($message['message']);
+ $entry['data'] = $message;
}
}