Catch exceptions in the process waf job, use symbols for actions, Don't create a rule which matches a supernet rule.

This commit is contained in:
Dan Milne
2025-12-01 21:23:23 +11:00
parent f0ad3b2c90
commit 1aa77066a1
2 changed files with 10 additions and 2 deletions

View File

@@ -79,6 +79,7 @@ class ProcessWafEventJob < ApplicationJob
Rails.logger.debug "Network processing took #{((Time.current - network_start) * 1000).round(2)}ms"
rescue => e
Rails.logger.warn "Failed to process network range for event #{event.id}: #{e.message}"
Sentry.capture_exception(e)
end
elsif event.ip_address.present?
Rails.logger.warn "Event #{event.id} has IP but no network_range_id (private IP?)"