Set the log level correctly for the custom logger.
authorTom Hughes <tom@compton.nu>
Mon, 25 Jun 2007 23:33:55 +0000 (23:33 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 25 Jun 2007 23:33:55 +0000 (23:33 +0000)
config/environment.rb

index b96c1a872e79d58236b2b5b9250d2a0b0abaaef0..c109a5d87124618d885f021f50ad211bcb40f500 100644 (file)
@@ -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')