lib/instana/agent.rb in instana-1.7.13 vs lib/instana/agent.rb in instana-1.7.14a

- old
+ new

@@ -150,11 +150,13 @@ # Starts the timer loop for the timers that were initialized # in the setup method. This is blocking and should only be # called from an already initialized background thread. # def start - unless host_agent_ready? - ::Instana.logger.warn "Host agent not available. Will retry periodically. (Set env INSTANA_QUIET=1 to shut these messages off)" + if !host_agent_ready? + if !ENV.key?("INSTANA_QUIET") + ::Instana.logger.warn "Host agent not available. Will retry periodically. (Set env INSTANA_QUIET=1 to shut these messages off)" + end end loop do if @state == :unannounced @collect_timer.pause