More bugfixes

This commit is contained in:
Daniil Gentili 2018-10-13 15:55:44 +00:00
parent deee5a4dfd
commit b4835f595f

View File

@ -119,7 +119,7 @@ class Logger
if ($file === null) { if ($file === null) {
$file = basename(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0]['file'], '.php'); $file = basename(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0]['file'], '.php');
} }
$param = str_pad($file.$prefix.': ', 16 + strlen($prefix))."\t".$param; $param = str_pad($file.$prefix.': ', 16 + strlen($prefix))."\t".str_replace('<', '', $param);
switch ($this->mode) { switch ($this->mode) {
case 1: case 1:
error_log($param); error_log($param);