Skip to content

Commit

Permalink
Update loggings
Browse files Browse the repository at this point in the history
  • Loading branch information
shenkeyao committed Aug 14, 2024
1 parent 51957db commit 7ba5f0e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions marketplace-builder/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,26 +206,29 @@ 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 };

async_spawn(async move {
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,
Expand Down

0 comments on commit 7ba5f0e

Please sign in to comment.