summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-07-24 08:49:53 +0000
committerthomascube <thomas@roundcube.net>2009-07-24 08:49:53 +0000
commit186938dac6d2be1c69ed114ece0b37565769d49f (patch)
tree505fc04e7e63769744d3b174549ce995ba6f707a /program/include/main.inc
parentf78dab1c80c27cd64b5e1f967da20fd43c17006d (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.inc3
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;
}