route Logger:log() to user_error() if there's no adapter
This commit is contained in:
parent
03361dda34
commit
324aef9f6f
|
@ -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…
Reference in New Issue