mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 04:21:29 +00:00
Logger->log() allow passing context (defaults to '')
This commit is contained in:
@@ -30,9 +30,9 @@ class Logger {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function log($string) {
|
function log($string, $context = "") {
|
||||||
if ($this->adapter)
|
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
|
else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user