refactor: include binary name in crates_to_filter for logging (#1689)

This commit is contained in:
Sanchith Hegde
2023-07-12 17:00:32 +05:30
committed by GitHub
parent 5216d22efc
commit 123b34c7dc
11 changed files with 306 additions and 43 deletions

View File

@ -34,7 +34,7 @@ async fn main() -> ApplicationResult<()> {
conf.validate()
.expect("Failed to validate router configuration");
let _guard = logger::setup(&conf.log);
let _guard = logger::setup(&conf.log, [router_env::service_name!(), "actix_server"]);
logger::info!("Application started [{:?}] [{:?}]", conf.server, conf.log);