Fix: Do not break dolibarr usage if log fails

This commit is contained in:
Laurent Destailleur 2012-11-06 19:42:03 +01:00
parent fff8598282
commit 7d01ea7fc3

View File

@ -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(