feat: replace --static option to --no-edit

This commit is contained in:
sigoden
2022-05-29 17:01:30 +08:00
parent 4841ebb76d
commit 06ce7b0175
3 changed files with 39 additions and 51 deletions

View File

@@ -28,13 +28,8 @@ async fn run() -> BoxResult<()> {
if std::env::var("RUST_LOG").is_ok() {
simple_logger::init()?;
} else {
let level = if args.log {
LevelFilter::Info
} else {
LevelFilter::Error
};
simple_logger::SimpleLogger::default()
.with_level(level)
.with_level(LevelFilter::Info)
.init()?;
}
serve(args).await