This commit is contained in:
xl
2023-05-02 15:43:20 +08:00
parent ae5e86c7e2
commit 4f6952bdc5
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -180,8 +180,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
*/
public function getLastError(): string
{
$logger = Kiri::getDi()->get(LoggerInterface::class);
return $logger->getLastError('mysql');
return Kiri::getLogger()->getLastError('mysql');
}