Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 将打印语句替换为日志记录 #154

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading