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:
@@ -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?)"
|
||||
|
||||
Reference in New Issue
Block a user