From 098c056677e254606d3e8d8a1e06ea3c4b238c25 Mon Sep 17 00:00:00 2001 From: David Sheets Date: Wed, 6 Dec 2023 11:58:08 +0000 Subject: [PATCH] discovery::server: fix startup log --- discovery/src/server.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discovery/src/server.rs b/discovery/src/server.rs index 21e8091a..ccdbe685 100644 --- a/discovery/src/server.rs +++ b/discovery/src/server.rs @@ -269,10 +269,10 @@ impl DiscoveryServer { tokio::spawn(async { let result = server .with_graceful_shutdown(async { - debug!("Shutting down discovery server"); - if close_rx.await.is_ok() { - debug!("unable to close discovery Rx channel completely"); + if let Err(e) = close_rx.await { + debug!("unable to close discovery Rx channel completely: {e}"); } + debug!("Shutting down discovery server"); }) .await;