]> git.wh0rd.org Git - tt-rss.git/commitdiff
Logger->log() allow passing context (defaults to '')
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 10 Sep 2018 18:32:10 +0000 (21:32 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 10 Sep 2018 18:32:10 +0000 (21:32 +0300)
classes/logger.php

index 1c7b5eb305949d2692d87415f71ccb32ca0eee85..732f1fd5d087d802b5cfed19b4afb195764288c3 100755 (executable)
@@ -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;
        }