refactor(log): Remove unnecessary filename formatting in log_write function
This commit is contained in:
@@ -2163,8 +2163,6 @@ function log_write(string $message, string $level = 'info', string $filename = '
|
||||
// 生成日志文件名
|
||||
if (empty($filename)) {
|
||||
$filename = date('Y-m-d') . '.log';
|
||||
} else {
|
||||
$filename = date('Y-m-d') . '-' . $filename;
|
||||
}
|
||||
|
||||
// 日志文件路径
|
||||
|
||||
Reference in New Issue
Block a user