Permalink
Browse files

adjusting LogThreshold logic

  • Loading branch information...
1 parent 4dfa37c commit 3d7e7ff70b02df413f32daac4e2a53099b5a44cc lukeludwig committed Mar 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack_timer/stack.rb
View
@@ -5,7 +5,7 @@ class MiddlewareStack < Array
# each middleware takes to execute
class RackTimer
- LogThreshold = ENV['RACK_TIMER_LOG_THRESHOLD'].to_f || 1.0 # millisecond
+ LogThreshold = ENV.has_key?('RACK_TIMER_LOG_THRESHOLD') ? ENV['RACK_TIMER_LOG_THRESHOLD'].to_f : 1.0 # millisecond
def initialize(app)
@app = app

0 comments on commit 3d7e7ff

Please sign in to comment.