lib/timber/log_devices/http.rb in timber-2.3.2 vs lib/timber/log_devices/http.rb in timber-2.3.3
- old
+ new
@@ -252,10 +252,12 @@
# and establish a new connection.
def deliver_requests(conn)
num_reqs = 0
while num_reqs < @requests_per_conn
- Timber::Config.instance.debug { "Waiting on next request, threads waiting: #{@request_queue.num_waiting}" }
+ if @request_queue.size > 0
+ Timber::Config.instance.debug { "Waiting on next request, threads waiting: #{@request_queue.size}" }
+ end
request_attempt = @request_queue.deq
if request_attempt.nil?
sleep(1)
\ No newline at end of file