forked from devsam/core
fix: logError 버그 수정
This commit is contained in:
+4
-1
@@ -99,7 +99,10 @@ function logError(string $err, string $errstr, string $errpath, array $trace)
|
|||||||
$err = str_replace(ROOT, '{ROOT}', $err);
|
$err = str_replace(ROOT, '{ROOT}', $err);
|
||||||
$errstr = str_replace(ROOT, '{ROOT}', $errstr);
|
$errstr = str_replace(ROOT, '{ROOT}', $errstr);
|
||||||
$errpath = str_replace(ROOT, '{ROOT}', $errpath);
|
$errpath = str_replace(ROOT, '{ROOT}', $errpath);
|
||||||
$trace = array_map(function (string $text) {
|
$trace = array_map(function (string|array $text) {
|
||||||
|
if (is_array($text)) {
|
||||||
|
$text = Json::encode($text);
|
||||||
|
}
|
||||||
return str_replace(ROOT, '{ROOT}', $text);
|
return str_replace(ROOT, '{ROOT}', $text);
|
||||||
}, $trace);
|
}, $trace);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user