LSlog_staticLoggerClass: fix log_exception() method

This commit is contained in:
Benjamin Renard 2020-05-18 20:14:10 +02:00
parent 76577c058b
commit c120e76822

View file

@ -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);
}
/**