From: Andrew Dolgov Date: Mon, 10 Sep 2018 18:32:10 +0000 (+0300) Subject: Logger->log() allow passing context (defaults to '') X-Git-Tag: 18.12~71 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=80fd79ca304d53d94f4b4f341ad61436976a2e7e;p=tt-rss.git Logger->log() allow passing context (defaults to '') --- 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; }