From d9d748267ffb37b535c2bd33931211fa8df7d937 Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Thu, 29 Aug 2024 08:44:00 -0700 Subject: [PATCH] pbh: a bit extra logging when fail to subscribe to /events --- magic-nix-cache/src/pbh.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/magic-nix-cache/src/pbh.rs b/magic-nix-cache/src/pbh.rs index 62f2823..b75806b 100644 --- a/magic-nix-cache/src/pbh.rs +++ b/magic-nix-cache/src/pbh.rs @@ -57,9 +57,12 @@ pub async fn subscribe_uds_post_build_hook( }; let response = sender.send_request(request).await; - let Ok(response) = response else { - tracing::error!("buit-paths: failed to send subscription request"); - continue; + let response = match response { + Ok(r) => r, + Err(e) => { + tracing::error!("buit-paths: failed to send subscription request: {:?}", e); + continue; + } }; let mut data = response.into_data_stream();