summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2012-02-20 16:17:38 +0000
committerChristoph Helma <helma@in-silico.ch>2012-02-20 16:17:38 +0000
commitaf9a688c2e5a214ec6dccc61aee2e063a5899794 (patch)
tree1c7498eef313e2c6950f094011aeb7945319fff1
parentc406475ebeb5859773fa0d5222176d5e07a47a14 (diff)
instead of LOGGER
-rw-r--r--lib/environment.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/environment.rb b/lib/environment.rb
index 300c431..6c3523b 100644
--- a/lib/environment.rb
+++ b/lib/environment.rb
@@ -22,13 +22,13 @@ else
end
logfile = "#{LOG_DIR}/#{ENV["RACK_ENV"]}.log"
-#LOGGER = OTLogger.new(logfile,'daily') # daily rotation
-LOGGER = OTLogger.new(logfile) # no rotation
-LOGGER.formatter = Logger::Formatter.new #this is neccessary to restore the formating in case active-record is loaded
+#$logger = OTLogger.new(logfile,'daily') # daily rotation
+$logger = OTLogger.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
+ $logger.level = Logger::DEBUG
else
- LOGGER.level = Logger::WARN
+ $logger.level = Logger::WARN
end
# Regular expressions for parsing classification data