aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 b6a208ad68a..94f4f6b2e8a 100644
--- a/lib/private/Log/File.php
+++ b/lib/private/Log/File.php
@@ -144,6 +144,9 @@ class File {
error_log($entry);
}
if (php_sapi_name() === 'cli-server') {
+ if (!\is_string($message)) {
+ $message = json_encode($message);
+ }
error_log($message, 4);
}
}