Merge pull request #88 from DeterminateSystems/colemickens/mnc-errors

pbh: a bit extra logging when fail to subscribe to /events
This commit is contained in:
Cole Mickens 2024-08-29 11:32:31 -05:00 committed by GitHub
commit a4866b9dcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();