Browse Source

route Logger:log() to user_error() if there's no adapter

master
Andrew Dolgov 1 year ago
parent
commit
324aef9f6f
  1. 2
      classes/logger.php

2
classes/logger.php

@ -46,7 +46,7 @@ class Logger {
if ($this->adapter)
return $this->adapter->log_error($errno, $errstr, '', 0, $context);
else
return false;
return user_error($errstr, $errno);
}
private function __clone() {

Loading…
Cancel
Save