Skip to content
Browse files

check value for debug options instead of checking for key debug

  • Loading branch information...
1 parent 13df6d3 commit 34b49d6fcb9c25a04fe044ae4d014b387eb0dbe1 @jedi4ever committed Aug 14, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/veewee/environment.rb
View
4 lib/veewee/environment.rb
@@ -80,7 +80,9 @@ def initialize(options={})
# We need to set this variable before the first call to the logger object
if options.has_key?("debug")
- ENV['VEEWEE_LOG']="STDOUT"
+ if options["debug"] == true
+ ENV['VEEWEE_LOG']="STDOUT"
+ end
end
logger.info("environment") { "Environment initialized (#{self})" }

0 comments on commit 34b49d6

Please sign in to comment.
Something went wrong with that request. Please try again.