mirror of
https://github.com/pi-hole/web.git
synced 2026-04-26 19:55:15 +01:00
Set a default error log when empty
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<?php
|
||||
$ERRORLOG = getenv('PHP_ERROR_LOG');
|
||||
if (empty($ERRORLOG)) {
|
||||
$ERRORLOG = '/var/log/lighttpd/error.log'
|
||||
}
|
||||
|
||||
function pi_log($message) {
|
||||
error_log(date('Y-m-d H:i:s') . ': ' . $message . "\n", 3, $GLOBALS['ERRORLOG']);
|
||||
|
||||
Reference in New Issue
Block a user