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

This commit is contained in:
Andrew Dolgov 2021-03-10 21:31:57 +03:00
parent 03361dda34
commit 324aef9f6f
1 changed files with 1 additions and 1 deletions

View File

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