Skip to content

Commit

Permalink
Merge pull request #5007 from stacks-network/chore/event-dispatcher-logs
Browse files Browse the repository at this point in the history
chore: add debug log with event dispatcher payload
  • Loading branch information
obycode committed Jul 25, 2024
2 parents 9198899 + cbc01d9 commit 914de0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testnet/stacks-node/src/event_dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ impl RewardSetEventPayload {

impl EventObserver {
pub fn send_payload(&self, payload: &serde_json::Value, path: &str) {
debug!(
"Event dispatcher: Sending payload"; "url" => %path, "payload" => ?payload
);
let body = match serde_json::to_vec(&payload) {
Ok(body) => body,
Err(err) => {
Expand Down

0 comments on commit 914de0b

Please sign in to comment.