Skip to content

Commit

Permalink
fix: log relay message (#376)
Browse files Browse the repository at this point in the history
* fix: log message ID

* fix: log watch event message ID
  • Loading branch information
chris13524 authored Feb 22, 2024
1 parent e656041 commit 59f080a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/public_http_server/handlers/relay_webhook/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ pub async fn handler(

let claims = WatchEventClaims::try_from_str(event)
.map_err(|e| Error::ClientError(ClientError::ParseWatchEvent(e)))?;
info!(
"Received watch event with message ID: {}",
claims.evt.message_id
);

claims
.verify_basic(&HashSet::from([state.config.notify_url.to_string()]), None)
Expand Down

0 comments on commit 59f080a

Please sign in to comment.