mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-24 14:36:09 -04:00
Instead of fatal error triggering, turn off file logging and log the error elsewhere
This commit is contained in:
@@ -397,7 +397,8 @@ class Logger {
|
||||
if ( !error_log($message."\n", 3, $this->logFile) ) {
|
||||
if ( strnatcmp(phpversion(), '5.2.0') >= 0 ) {
|
||||
$error = error_get_last();
|
||||
trigger_error("Can't write to log file '".$this->logFile."': ".$error['message'].' @ '.$error['file'].'/'.$error['line'], E_USER_ERROR);
|
||||
$this->fileLevel = self::NOLOG;
|
||||
Error("Can't write to log file '".$this->logFile."': ".$error['message'].' @ '.$error['file'].'/'.$error['line'], E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
} else if ( $this->logFd ) {
|
||||
|
||||
Reference in New Issue
Block a user