Improve logs readability

This commit is contained in:
jf-cbd
2025-03-06 11:46:00 +01:00
parent f3909eb50a
commit 6105255d76
2 changed files with 2 additions and 2 deletions

View File

@@ -714,7 +714,7 @@ class CoreServices implements iRestServiceProvider, iRestInputSanitizer
}
break;
}
return json_encode($aJsonData, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
return json_encode($aJsonData, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
}
/**

View File

@@ -286,7 +286,7 @@ if (MetaModel::GetConfig()->Get('log_rest_service'))
$oLog->SetTrim('message', $sMessage);
$oLog->Set('code', $oResult->code);
$oResult->SanitizeContent();
$oLog->SetTrim('json_output', json_encode($oResult, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT));
$oLog->SetTrim('json_output', json_encode($oResult, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE));
$oLog->DBInsertNoReload();
$oKPI->ComputeAndReport('Log inserted');