lib/timber/cli/api.rb in timber-2.0.7 vs lib/timber/cli/api.rb in timber-2.0.8
- old
+ new
@@ -42,9 +42,16 @@
def wait_for_logs(iteration = 0, &block)
if block_given?
yield iteration
end
+ case iteration
+ when 0
+ event!(:waiting_for_logs)
+ when 30
+ event!(:excessively_waiting_for_logs)
+ end
+
sleep 0.5
res = get!(HAS_LOGS_PATH)
case res.code
\ No newline at end of file