summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-06-25 20:14:50 +0200
committerChristoph Helma <helma@in-silico.ch>2010-06-25 20:14:50 +0200
commitd505f1b33bb823be23728178175c799d2f30fcca (patch)
tree409fb65151cc6930d4cd04cb9564804db0ef422c /lib
parentb8b51dc05d5dcbfe5ea2b8119878188c72d571b7 (diff)
regression initially working
Diffstat (limited to 'lib')
-rw-r--r--lib/environment.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/environment.rb b/lib/environment.rb
index 105f443..7036951 100644
--- a/lib/environment.rb
+++ b/lib/environment.rb
@@ -106,12 +106,16 @@ end
logfile = "#{LOG_DIR}/#{ENV["RACK_ENV"]}.log"
LOGGER = MyLogger.new(logfile,'daily') # daily rotation
-LOGGER.level = Logger::WARN if ENV["RACK_ENV"] == 'production'
+case `hostname`
+when /ot-dev/
+ LOGGER.level = Logger::DEBUG
+else
+ LOGGER.level = Logger::WARN
+end
#LOGGER = MyLogger.new(STDOUT)
#LOGGER.datetime_format = "%Y-%m-%d %H:%M:%S "
-#LOGGER.level = Logger::DEBUG
if File.exist?(user_file)
@@users = YAML.load_file(user_file)