diff --git a/crates/suins-indexer/src/main.rs b/crates/suins-indexer/src/main.rs index 0f3db957205e2..32cc19860eb6f 100644 --- a/crates/suins-indexer/src/main.rs +++ b/crates/suins-indexer/src/main.rs @@ -125,6 +125,7 @@ impl Worker for SuinsIndexerWorker { #[tokio::main] async fn main() -> Result<()> { + let _guard = mysten_service::logging::init(); dotenv().ok(); let (remote_storage, registry_id, subdomain_wrapper_type, name_record_type) = ( env::var("REMOTE_STORAGE").ok(), @@ -174,5 +175,6 @@ async fn main() -> Result<()> { exit_receiver, ) .await?; + drop(_guard); Ok(()) }