summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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