This commit is contained in:
2023-04-16 02:46:54 +08:00
parent d22955233c
commit 0bf69d576d
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ class Command extends Component
private function error(\Throwable $throwable): bool
{
$message = $this->sql . '.' . json_encode($this->params, JSON_UNESCAPED_UNICODE);
return $this->logger->addError($message . $throwable->getMessage(), 'mysql');
return \Kiri::getLogger()->addError($message . $throwable->getMessage(), 'mysql');
}