Merge pull request #17547 from nextcloud/enh/noid/log-exception-json-escape
Do not escape slashes for logged exceptions
This commit is contained in:
commit
2276cb12c4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue