mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
refactor: include binary name in service field in log entries (#2077)
This commit is contained in:
@ -34,7 +34,11 @@ async fn main() -> ApplicationResult<()> {
|
||||
conf.validate()
|
||||
.expect("Failed to validate router configuration");
|
||||
|
||||
let _guard = logger::setup(&conf.log, [router_env::service_name!(), "actix_server"]);
|
||||
let _guard = router_env::setup(
|
||||
&conf.log,
|
||||
router_env::service_name!(),
|
||||
[router_env::service_name!(), "actix_server"],
|
||||
);
|
||||
|
||||
logger::info!("Application started [{:?}] [{:?}]", conf.server, conf.log);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user