日志不写出到文件

This commit is contained in:
2026-01-29 00:03:21 +08:00
parent f1a8a6e28a
commit dd7c5151dc

View File

@@ -47,7 +47,7 @@ pub fn init_log(is_debug: bool) {
message message
)) ))
}) })
.chain(fern::log_file(get_log_path().join("app.log")).expect("无法写入日志文件")) //.chain(fern::log_file(get_log_path().join("app.log")).expect("无法写入日志文件"))
.chain(std::io::stdout()); .chain(std::io::stdout());
if is_debug { if is_debug {