From: Tom Hughes Date: Mon, 25 Jun 2007 23:33:55 +0000 (+0000) Subject: Set the log level correctly for the custom logger. X-Git-Tag: live~8308 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c4307c7f04bc6f3d75e5e47ed6972d2ddd6d1b5f Set the log level correctly for the custom logger. --- diff --git a/config/environment.rb b/config/environment.rb index b96c1a872..c109a5d87 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -35,6 +35,7 @@ Rails::Initializer.run do |config| # Use our custom logger config.logger = OSMLogger.new(config.log_path) + config.logger.level = Logger.const_get(config.log_level.to_s.upcase) # Use the database for sessions instead of the file system # (create the session table with 'rake db:sessions:create')