fix on log after upgrade
This commit is contained in:
parent
e0bb25cbe5
commit
e26a838882
@ -43,17 +43,19 @@ fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
use flexi_logger::*;
|
use flexi_logger::*;
|
||||||
Logger::with_env_or_str("debug")
|
Logger::try_with_env_or_str("debug")
|
||||||
.log_to_file()
|
.map(|x| {
|
||||||
|
x.log_to_file(FileSpec::default().directory(path))
|
||||||
.format(opt_format)
|
.format(opt_format)
|
||||||
.rotate(
|
.rotate(
|
||||||
Criterion::Age(Age::Day),
|
Criterion::Age(Age::Day),
|
||||||
Naming::Timestamps,
|
Naming::Timestamps,
|
||||||
Cleanup::KeepLogFiles(6),
|
Cleanup::KeepLogFiles(6),
|
||||||
)
|
)
|
||||||
.directory(path)
|
|
||||||
.start()
|
.start()
|
||||||
.ok();
|
.ok();
|
||||||
|
})
|
||||||
|
.ok();
|
||||||
}
|
}
|
||||||
if args.is_empty() {
|
if args.is_empty() {
|
||||||
std::thread::spawn(move || start_server(false, false));
|
std::thread::spawn(move || start_server(false, false));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user