Browse Source

Logger->log() allow passing context (defaults to '')

Andrew Dolgov 6 months ago
parent
commit
80fd79ca30
1 changed files with 2 additions and 2 deletions
  1. 2 2
      classes/logger.php

+ 2 - 2
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;
 	}