misc: 에러 로깅시 에러명에도 {ROOT}치환

This commit is contained in:
2022-05-09 21:49:02 +09:00
parent fbcfbb7156
commit 5824079b41
+1
View File
@@ -96,6 +96,7 @@ function logError(string $err, string $errstr, string $errpath, array $trace)
$fdb = FileDB::db(ROOT . '/d_log/err_log.sqlite3', ROOT . '/f_install/sql/err_log.sql');
$date = date("Ymd_His");
$err = str_replace(ROOT, '{ROOT}', $errpath);
$errpath = str_replace(ROOT, '{ROOT}', $errpath);
$trace = array_map(function (string $text) {
return str_replace(ROOT, '{ROOT}', $text);