This commit is contained in:
2023-12-13 18:14:42 +08:00
parent 89592ff638
commit d28af2fa09
+1 -1
View File
@@ -185,7 +185,7 @@ class Command extends Component
{
$logger = $this->getLogger();
$error = $this->sql . '.' . json_encode($this->params) . PHP_EOL . throwable($throwable);
file_put_contents('php://output', '[' . date('Y-m-d H:i:s') . '] ' . $error . PHP_EOL, FILE_APPEND);
file_put_contents('php://output', '[' . date('Y-m-d H:i:s') . '] ' . $error, FILE_APPEND);
return $logger;
}