lib/www/mechanize/chain/connection_resolver.rb in mechanize-0.8.2 vs lib/www/mechanize/chain/connection_resolver.rb in mechanize-0.8.3
- old
+ new
@@ -49,10 +49,10 @@
opts = cache_obj[:keep_alive_options]
if((opts[:timeout] &&
Time.now.to_i - cache_obj[:last_request_time] > opts[:timeout].to_i) ||
opts[:max] && opts[:max].to_i == 1)
- log.debug('Finishing stale connection') if log
+ Mechanize.log.debug('Finishing stale connection') if Mechanize.log
http_obj.finish
end
end