lib/semantic_logger/railtie.rb in semantic_logger-0.11.2 vs lib/semantic_logger/railtie.rb in semantic_logger-0.11.3
- old
+ new
@@ -38,11 +38,11 @@
unless File.exist? File.dirname path
FileUtils.mkdir_p File.dirname path
end
# Set internal logger to log to file only, in case another appender
- # experiences logging problems
- appender = SemanticLogger::Appender::File.new(path)
+ # experiences errors during writes
+ appender = SemanticLogger::Appender::File.new(path, config.log_level)
appender.name = "SemanticLogger::Logger"
SemanticLogger::Logger.logger = appender
# Add the log file to the list of appenders
SemanticLogger::Logger.appenders << SemanticLogger::Appender::File.new(path)