This commit is contained in:
2021-07-09 14:38:49 +08:00
parent b3ea8978b1
commit 73cb94f657
+2 -2
View File
@@ -167,8 +167,8 @@ class Logger extends Component
*/ */
public function write(string $messages, string $method = 'app') public function write(string $messages, string $method = 'app')
{ {
if (empty($messages)) { return;
return; if (empty($messages)) {
} }
$fileName = 'server-' . date('Y-m-d') . '.log'; $fileName = 'server-' . date('Y-m-d') . '.log';