From 4b45e08d17ded1146276b6ed8be503720c7c2dac Mon Sep 17 00:00:00 2001 From: Remi Bernotavicius Date: Wed, 4 Sep 2024 17:04:57 -0700 Subject: [PATCH] Don't log anything when the remote logging stream errors The way things are this can happen normally during shutdown. --- crates/maelstrom-client/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/maelstrom-client/src/lib.rs b/crates/maelstrom-client/src/lib.rs index 7c61bc67..0210f34b 100644 --- a/crates/maelstrom-client/src/lib.rs +++ b/crates/maelstrom-client/src/lib.rs @@ -241,9 +241,7 @@ impl Client { .await? .into_inner(); tokio::task::spawn(async move { - if let Err(e) = handle_log_messages(&rpc_log, log_stream).await { - slog::error!(&rpc_log, "remote logging failed"; "error" => ?e); - } + let _ = handle_log_messages(&rpc_log, log_stream).await; }); Ok(tonic::Response::new(proto::Void {})) })?;