Skip to content

Commit

Permalink
Merge pull request #88 from DeterminateSystems/colemickens/mnc-errors
Browse files Browse the repository at this point in the history
pbh: a bit extra logging when fail to subscribe to /events
  • Loading branch information
colemickens authored Aug 29, 2024
2 parents 48ec31e + d9d7482 commit a4866b9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions magic-nix-cache/src/pbh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit a4866b9

Please sign in to comment.