This commit is contained in:
as2252258@163.com
2021-07-11 03:59:52 +08:00
parent 12d547c1a2
commit cda768b721
+1 -1
View File
@@ -172,8 +172,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)) {
} }
$dirName = 'log/' . ($method ?? 'app'); $dirName = 'log/' . ($method ?? 'app');