summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-08-06 13:33:40 +0200
committerChristoph Helma <helma@in-silico.ch>2010-08-06 13:33:40 +0200
commita161416cf82c2365094b041981a7a495eb268911 (patch)
treeb9df08f9b30ef9a0093f5dbd50fa22fc1c28b571 /lib
parentb92d78620f7e9ed3a35730f867019723f51c4462 (diff)
log rotation disabled
Diffstat (limited to 'lib')
-rw-r--r--lib/environment.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/environment.rb b/lib/environment.rb
index 917011d..1551448 100644
--- a/lib/environment.rb
+++ b/lib/environment.rb
@@ -45,7 +45,8 @@ end
load File.join config_dir,"mail.rb" if File.exists?(File.join config_dir,"mail.rb")
logfile = "#{LOG_DIR}/#{ENV["RACK_ENV"]}.log"
-LOGGER = MyLogger.new(logfile,'daily') # daily rotation
+#LOGGER = MyLogger.new(logfile,'daily') # daily rotation
+LOGGER = MyLogger.new(logfile) # no 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