Skip to content

Commit

Permalink
chore: reduce logging level for event listener logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 10, 2021
1 parent fc3a6d9 commit cef5e13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/pact_broker/webhooks/event_listener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ def provider_verification_failed(params)

def log_detected_event
event = detected_events.last
logger.info "Event detected", payload: { event_name: event.name, event_comment: event.comment }
logger.debug "Event detected", payload: { event_name: event.name, event_comment: event.comment }
if event.triggered_webhooks&.any?
triggered_webhook_descriptions = event.triggered_webhooks.collect{ |tw| { webhook_uuid: tw.webhook_uuid, triggered_webhook_uuid: tw.uuid, webhook_description: tw.webhook.description } }
triggered_webhook_descriptions = event.triggered_webhooks.collect{ |tw| { event_name: event.name, webhook_uuid: tw.webhook_uuid, triggered_webhook_uuid: tw.uuid, webhook_description: tw.webhook.description } }
logger.info "Triggered webhooks for #{event.name}", payload: { triggered_webhooks: triggered_webhook_descriptions }
else
logger.info "No enabled webhooks found for event #{event.name}"
logger.debug "No enabled webhooks found for event #{event.name}"
end
end

Expand Down

0 comments on commit cef5e13

Please sign in to comment.