From 4755d4385be06d7bc01ae34c90215fbafb92c55e Mon Sep 17 00:00:00 2001 From: Keyao Shen Date: Wed, 14 Aug 2024 16:42:18 -0700 Subject: [PATCH] Modify loggings --- marketplace-builder/src/builder.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/marketplace-builder/src/builder.rs b/marketplace-builder/src/builder.rs index 539fe962b..1464a9286 100644 --- a/marketplace-builder/src/builder.rs +++ b/marketplace-builder/src/builder.rs @@ -206,11 +206,13 @@ impl BuilderConfig { let res = run_non_permissioned_standalone_builder_service(hooks, senders, events_url) .await; - tracing::error!(?res, "builder service exited"); + tracing::error!(?res, "Reserve builder service exited"); if res.is_err() { - panic!("Builder should restart."); + panic!("Reserve builder should restart."); } }); + + tracing::info!("Reserve builder init finished"); } else { let hooks = hooks::EspressoFallbackHooks { solver_api_url }; @@ -218,14 +220,15 @@ impl BuilderConfig { let res = run_non_permissioned_standalone_builder_service(hooks, senders, events_url) .await; - tracing::error!(?res, "builder service exited"); + tracing::error!(?res, "Fallback builder service exited"); if res.is_err() { - panic!("Builder should restart."); + panic!("Fallback builder should restart."); } }); + + tracing::info!("Fallback builder init finished"); } - tracing::info!("Builder init finished"); Ok(Self { global_state, hotshot_events_api_url,