summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-07-19 12:19:06 +0200
committerChristoph Helma <helma@in-silico.ch>2010-07-19 12:19:06 +0200
commit10a49570ef82e1a721df980a97b5c298a5f9b28e (patch)
tree64312919cb02e0a82a0d135fe60637af0aa1111d /lib
parent947253467e1f3d4968e9b2da2024a18338dfb5d5 (diff)
parent94363088babbc613f8f49bae587775fde4c72392 (diff)
Merge commit 'mguetlein/test' into development
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