We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb793bf commit 7dcd354Copy full SHA for 7dcd354
lib/semantic_logger/appender/sentry_ruby.rb
@@ -40,7 +40,12 @@ class SentryRuby < SemanticLogger::Subscriber
40
def initialize(level: :error, **args, &block)
41
# Replace the Sentry Ruby logger so that we can identify its log
42
# messages and not forward them to Sentry
43
- ::Sentry.init { |config| config.logger = SemanticLogger[::Sentry] } unless ::Sentry.initialized?
+ unless ::Sentry.initialized?
44
+ ::Sentry.init do |config|
45
+ logger = SemanticLogger[::Sentry]
46
+ config.respond_to?(:sdk_logger=) ? config.sdk_logger = logger : config.logger = logger
47
+ end
48
49
super
50
end
51
0 commit comments