Skip to content

Commit

Permalink
Do not send exceptions when they are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
stympy committed Nov 19, 2024
1 parent 1b112e4 commit 20e72d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/honeybadger/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ def initialize(opts = {})
# @return [String] UUID reference to the notice within Honeybadger.
# @return [false] when ignored.
def notify(exception_or_opts = nil, opts = {}, **kwargs)
if !config[:'notices.enabled']
debug { 'disabled feature=notices' }
return false
end

opts = opts.dup
opts.merge!(kwargs)

Expand Down

0 comments on commit 20e72d3

Please sign in to comment.