From 186938dac6d2be1c69ed114ece0b37565769d49f Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 24 Jul 2009 04:49:53 -0400
Subject: [PATCH] Use write_log() to log bugs. This will also trigger the write_log plugin hook as requested in #1485998

---
 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 ba2f690..09b8c78 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1012,6 +1012,7 @@
   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 @@
       fwrite($fp, $log_entry);
       fflush($fp);
       fclose($fp);
+      return true;
     }
   }
+  return false;
 }
 
 

--
Gitblit v1.9.1