Merge pull request #17547 from nextcloud/enh/noid/log-exception-json-escape

Do not escape slashes for logged exceptions
This commit is contained in:
Roeland Jago Douma 2019-10-21 11:14:03 +02:00 committed by GitHub
commit 2276cb12c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ class Log implements ILogger {
try {
if ($level >= $minLevel) {
if (!$this->logger instanceof IFileBased) {
$data = json_encode($data, JSON_PARTIAL_OUTPUT_ON_ERROR);
$data = json_encode($data, JSON_PARTIAL_OUTPUT_ON_ERROR | JSON_UNESCAPED_SLASHES);
}
$this->writeLog($app, $data, $level);
}