Skip to content

Commit

Permalink
Merge pull request #186 from jens/disable-bugsnag-warnings
Browse files Browse the repository at this point in the history
Disable Bugsnag api key validation
  • Loading branch information
reidmorrison authored Nov 9, 2023
2 parents 23ed5de + f8ce899 commit 4c7cd99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rails_semantic_logger/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class Engine < ::Rails::Engine
end

# Replace the Bugsnag logger
Bugsnag.configure { |config| config.logger = SemanticLogger[Bugsnag] } if defined?(Bugsnag)
Bugsnag.configure(false) { |config| config.logger = SemanticLogger[Bugsnag] } if defined?(Bugsnag)

# Set the IOStreams PGP logger
IOStreams::Pgp.logger = SemanticLogger["IOStreams::Pgp"] if defined?(IOStreams)
Expand All @@ -138,7 +138,7 @@ class Engine < ::Rails::Engine
config = Rails.application.config

# Replace the Bugsnag logger
Bugsnag.configure { |bugsnag_config| bugsnag_config.logger = SemanticLogger[Bugsnag] } if defined?(Bugsnag)
Bugsnag.configure(false) { |bugsnag_config| bugsnag_config.logger = SemanticLogger[Bugsnag] } if defined?(Bugsnag)

# Rails Patches
require("rails_semantic_logger/extensions/action_cable/tagged_logger_proxy") if defined?(::ActionCable)
Expand Down

0 comments on commit 4c7cd99

Please sign in to comment.