diff options
author | thomascube <thomas@roundcube.net> | 2009-07-24 08:49:53 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2009-07-24 08:49:53 +0000 |
commit | 186938dac6d2be1c69ed114ece0b37565769d49f (patch) | |
tree | 505fc04e7e63769744d3b174549ce995ba6f707a /program/include/main.inc | |
parent | f78dab1c80c27cd64b5e1f967da20fd43c17006d (diff) |
Use write_log() to log bugs. This will also trigger the write_log plugin hook as requested in #1485998
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index ba2f690af..09b8c78d4 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -1012,6 +1012,7 @@ function write_log($name, $line) if ($CONFIG['log_driver'] == 'syslog') { $prio = $name == 'errors' ? LOG_ERR : LOG_INFO; syslog($prio, $log_entry); + return true; } else { // log_driver == 'file' is assumed here @@ -1023,8 +1024,10 @@ function write_log($name, $line) fwrite($fp, $log_entry); fflush($fp); fclose($fp); + return true; } } + return false; } |