Skip to content

Commit c94ae1f

Browse files
committed
Direct access to appenders in v5
1 parent 7cf794f commit c94ae1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails_semantic_logger/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class Engine < ::Rails::Engine
222222
# Don't use a background thread for logging
223223
SemanticLogger.sync!
224224
# Add a stderr logger when running inside a Rails console unless one has already been added.
225-
if config.rails_semantic_logger.console_logger && !SemanticLogger::Logger.processor.appenders.console_output?
225+
if config.rails_semantic_logger.console_logger && !SemanticLogger.appenders.console_output?
226226
SemanticLogger.add_appender(io: STDERR, formatter: :color)
227227
end
228228

0 commit comments

Comments
 (0)