From 80fd79ca304d53d94f4b4f341ad61436976a2e7e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 10 Sep 2018 21:32:10 +0300 Subject: [PATCH] Logger->log() allow passing context (defaults to '') --- classes/logger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/logger.php b/classes/logger.php index 1c7b5eb3..732f1fd5 100755 --- a/classes/logger.php +++ b/classes/logger.php @@ -30,9 +30,9 @@ class Logger { return false; } - function log($string) { + function log($string, $context = "") { if ($this->adapter) - return $this->adapter->log_error(E_USER_NOTICE, $string, '', 0, ''); + return $this->adapter->log_error(E_USER_NOTICE, $string, '', 0, $context); else return false; } -- 2.39.5