Skip to content
This repository was archived by the owner on Dec 4, 2021. It is now read-only.

Commit 8a1b86c

Browse files
committed
fix log level
1 parent 023aa3c commit 8a1b86c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/mongodb_logger/initializer_mixin.rb

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def create_logger(config)
99
path = rails3(0) ? config.paths.log.to_a.first : config.paths['log'].first
1010
level = ActiveSupport::BufferedLogger.const_get(config.log_level.to_s.upcase)
1111
logger = MongodbLogger::Logger.new(:path => path, :level => level)
12+
logger.level = level
1213
logger.auto_flushing = false if Rails.env.production? && (rails3(0) || rails3(1))
1314
logger
1415
rescue StandardError => e

0 commit comments

Comments
 (0)