]> git.wh0rd.org - tt-rss.git/blobdiff - classes/logger.php
Logger->log() allow passing context (defaults to '')
[tt-rss.git] / 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;
        }