projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7cf62a9
)
Set the log level correctly for the custom logger.
author
Tom Hughes
<tom@compton.nu>
Mon, 25 Jun 2007 23:33:55 +0000
(23:33 +0000)
committer
Tom Hughes
<tom@compton.nu>
Mon, 25 Jun 2007 23:33:55 +0000
(23:33 +0000)
config/environment.rb
patch
|
blob
|
history
diff --git
a/config/environment.rb
b/config/environment.rb
index b96c1a872e79d58236b2b5b9250d2a0b0abaaef0..c109a5d87124618d885f021f50ad211bcb40f500 100644
(file)
--- 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)
# 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')
# Use the database for sessions instead of the file system
# (create the session table with 'rake db:sessions:create')