From b771569d064ce83b71e0af2cfac891b8804c7df6 Mon Sep 17 00:00:00 2001 From: Mark Friedrich Date: Sat, 6 Jan 2018 01:50:16 +0100 Subject: [PATCH] - fixed a bug where php-fpm receive >stderr from php when NO log handler is set (map activity log = active, map history log = disabled) --- app/main/lib/logging/AbstractLog.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/main/lib/logging/AbstractLog.php b/app/main/lib/logging/AbstractLog.php index 2a84fc8d..c7a842ff 100644 --- a/app/main/lib/logging/AbstractLog.php +++ b/app/main/lib/logging/AbstractLog.php @@ -545,7 +545,10 @@ abstract class AbstractLog implements LogInterface { * send this Log to global log buffer storage */ public function buffer(){ - Monolog::instance()->push($this); + // at least one handler is required for a valid log + if( !empty($this->handlerParamsConfig)) { + Monolog::instance()->push($this); + } }