diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-24 08:49:53 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-07-24 08:49:53 +0000 |
| commit | 66b55a2fcbf48b234884596bc574dc2c65e1a3f0 (patch) | |
| tree | de869ac1d73ef9b64991dac69392307aa376505e /roundcubemail/program/include/main.inc | |
| parent | 13f89f8e0f62dae3f3c1141d05ce49f1ffe16ffd (diff) | |
Use write_log() to log bugs. This will also trigger the write_log plugin hook as requested in #1485998
git-svn-id: https://svn.roundcube.net/trunk@2792 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/main.inc')
| -rw-r--r-- | roundcubemail/program/include/main.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index ba2f690af..09b8c78d4 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/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; } |
