Commit 9393da34 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1182 Remove logging into the error log as messages for the error log

file are also written by afterlog().

Released under the Affero GNU General Public License (AGPL) version 3.
parent 122e59ad
...@@ -95,10 +95,6 @@ class FileLog extends Log { ...@@ -95,10 +95,6 @@ class FileLog extends Log {
protected function Write($loglevel, $message) { protected function Write($loglevel, $message) {
$data = $this->buildLogString($loglevel, $message) . PHP_EOL; $data = $this->buildLogString($loglevel, $message) . PHP_EOL;
@file_put_contents(LOGFILE, $data, FILE_APPEND); @file_put_contents(LOGFILE, $data, FILE_APPEND);
if (($loglevel & LOGLEVEL_FATAL) || ($loglevel & LOGLEVEL_ERROR)) {
@file_put_contents(LOGERRORFILE, $data, FILE_APPEND);
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment