mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Ignore norairrecord ratelimits for honeybadger
This commit is contained in:
@@ -7,6 +7,10 @@ Honeybadger.configure do |config|
|
||||
MAX_ERRORS_PER_DAY = 50
|
||||
|
||||
config.before_notify do |notice|
|
||||
if notice.error_class == "Norairrecord::Error" && notice.error_message&.include?("HTTP 429")
|
||||
return false
|
||||
end
|
||||
|
||||
error_index = generate_error_index notice
|
||||
|
||||
should_ignore = rate_limit_exceeded? error_index
|
||||
|
||||
Reference in New Issue
Block a user