Skip to content

Commit

Permalink
BL-1910 Ignore overnight errors in Honeybadger (#1153)
Browse files Browse the repository at this point in the history
  • Loading branch information
sensei100 authored Dec 16, 2024
1 parent 4551b38 commit caaa3cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/honeybadger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Honeybadger.configure do |config|
config.before_notify do |notice|
# Ignore errors that occur during overnight maintenance
start_time = Time.parse("00:00").utc
end_time = Time.parse("03:30").utc
start_time = Time.now.utc.change(hour: 5, min: 0, sec: 0)
end_time = Time.now.utc.change(hour: 8, min: 30, sec: 0)
current_time = Time.now.utc

notice.halt! if current_time.between?(start_time, end_time)
Expand Down

0 comments on commit caaa3cf

Please sign in to comment.