- Timestamp:
- Apr 14, 2010, 9:33:31 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/inc/LogHandler.class.php
r7747 r7749 94 94 //Check if the file can be opened 95 95 if (!$handle = fopen($filename, 'w')) { 96 echo "Cannot open file ($filename)"; 96 define('LOG_LEVEL_WRITE', LOG_LEVEL_NONE); 97 trigger_log(SYSLOG_EMERG, 'Cannot open file "' . $filename . '"', __FILE__, __LINE__); 97 98 exit; 98 99 } … … 100 101 // Write $errorString to file. 101 102 if (fwrite($handle, $errorString) === FALSE) { 102 echo "Cannot write to file ($filename)"; 103 define('LOG_LEVEL_WRITE', LOG_LEVEL_NONE); 104 trigger_log(SYSLOG_EMERG, 'Cannot write to "' . $filename . '"', __FILE__, __LINE__); 103 105 exit; 104 106 }
Note:
See TracChangeset
for help on using the changeset viewer.