lib/shelly/cli/main.rb in shelly-0.1.36 vs lib/shelly/cli/main.rb in shelly-0.1.37.pre

- old
+ new

@@ -303,16 +303,12 @@ logs = app.application_logs(query) print_logs(logs) if options[:tail] - loop do - logs = app.application_logs(:from => logs['range']['last'], - :source => options[:source]) - print_logs(logs) - sleep 0.5 - end + app.application_logs_tail { |logs| print logs } end + rescue Client::APIException => e raise e unless e.status_code == 416 say_error "You have requested too many log messages. Try a lower number." end