summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-07-12 16:51:07 +0200
committermguetlein <martin.guetlein@gmail.com>2010-07-12 16:51:07 +0200
commit94363088babbc613f8f49bae587775fde4c72392 (patch)
treecb54675f949a7011fb51c535604aefad14a3ee6f /lib
parent0bbfb66685b9c647bc51dab432a63cb61114a697 (diff)
reset formater to undo active-record changes to the logger
Diffstat (limited to 'lib')
-rw-r--r--lib/environment.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/environment.rb b/lib/environment.rb
index abc7287..312eec4 100644
--- a/lib/environment.rb
+++ b/lib/environment.rb
@@ -107,6 +107,7 @@ end
logfile = "#{LOG_DIR}/#{ENV["RACK_ENV"]}.log"
LOGGER = MyLogger.new(logfile,'daily') # daily rotation
+LOGGER.formatter = Logger::Formatter.new #this is neccessary to restore the formating in case active-record is loaded
if @@config[:logger] and @@config[:logger] == "debug"
LOGGER.level = Logger::DEBUG
else