mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #10355 from nextcloud/bugfix/noid/make-sure-error-log-always-receives-a-string
Make sure error_log() always receives a string
This commit is contained in:
commit
f25d34b293
1 changed files with 3 additions and 0 deletions
|
|
@ -145,6 +145,9 @@ class File implements IWriter, IFileBased {
|
|||
error_log($entry);
|
||||
}
|
||||
if (php_sapi_name() === 'cli-server') {
|
||||
if (!\is_string($message)) {
|
||||
$message = json_encode($message);
|
||||
}
|
||||
error_log($message, 4);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue