diff --git a/htdocs/core/modules/syslog/mod_syslog_file.php b/htdocs/core/modules/syslog/mod_syslog_file.php index 4fbc9a39c4d..6920d35bb48 100644 --- a/htdocs/core/modules/syslog/mod_syslog_file.php +++ b/htdocs/core/modules/syslog/mod_syslog_file.php @@ -99,7 +99,9 @@ class mod_syslog_file extends LogHandler implements LogHandlerInterface if (!$filefd && ! defined("SYSLOG_FILE_NO_ERROR")) { - throw new Exception('Failed to open log file '.$logfile); + // Do not break dolibarr usage if log fails + //throw new Exception('Failed to open log file '.basename($logfile)); + print 'Failed to open log file '.basename($logfile); } $logLevels = array(