Skip to content

Commit

Permalink
Merge pull request #154 from MangerLe/master
Browse files Browse the repository at this point in the history
refactor: 将打印语句替换为日志记录
  • Loading branch information
heqingpan authored Oct 25, 2024
2 parents 44a3048 + d42708f commit 39e5afd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ async fn main() -> Result<(), Box<dyn Error>> {
if let Some(cmd) = cli_opt.command {
return run_subcommand(cmd).await;
}
println!("version:{}, RUST_LOG:{}", get_app_version(), &rust_log);
println!("data dir:{}", sys_config.local_db_dir);
log::info!("version:{}, RUST_LOG:{}", get_app_version(), &rust_log);
log::info!("data dir:{}", sys_config.local_db_dir);
let factory_data = config_factory(sys_config.clone()).await?;
let app_data = build_share_data(factory_data.clone())?;
let http_addr = sys_config.get_http_addr();
Expand Down Expand Up @@ -125,7 +125,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
if let Some(num) = sys_config.http_workers {
server = server.workers(num);
}
println!("rnacos started");
log::info!("rnacos started");
server.bind(http_addr)?.run().await?;
Ok(())
}
Expand Down

0 comments on commit 39e5afd

Please sign in to comment.