Skip to content

Commit b1de515

Browse files
committed
error_log built-in function is enough
1 parent d5df08e commit b1de515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public function logError($msg)
231231
return;
232232
}
233233

234-
file_put_contents(ini_get('error_log'), sprintf('[%s] %s%s', date('d-M-Y H:i:s e'), $msg, PHP_EOL), FILE_APPEND);
234+
error_log($msg);
235235
}
236236

237237
public function logException($exception)

0 commit comments

Comments
 (0)