From c120e76822a69a71b36baa96bb99fc248e048e0f Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 18 May 2020 20:14:10 +0200 Subject: [PATCH] LSlog_staticLoggerClass: fix log_exception() method --- src/includes/class/class.LSlog_staticLoggerClass.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/includes/class/class.LSlog_staticLoggerClass.php b/src/includes/class/class.LSlog_staticLoggerClass.php index 75a3c87e..3ff65c96 100644 --- a/src/includes/class/class.LSlog_staticLoggerClass.php +++ b/src/includes/class/class.LSlog_staticLoggerClass.php @@ -27,7 +27,6 @@ */ class LSlog_staticLoggerClass { - /* * Log a message via class logger * @@ -50,9 +49,7 @@ class LSlog_staticLoggerClass { * @retval void **/ protected static function log_exception($exception, $prefix=null, $fatal=true) { - if (is_null(self :: $logger)) - self :: $logger = LSlog :: get_logger(get_called_class()); - self :: $logger -> exception($exception, $prefix, $fatal); + LSlog :: get_logger(get_called_class()) -> exception($exception, $prefix, $fatal); } /**