lib/instana/agent.rb in instana-1.7.11 vs lib/instana/agent.rb in instana-1.7.12
- old
+ new
@@ -150,10 +150,12 @@
# 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
- ::Instana.logger.warn "Host agent not available. Will retry periodically." unless host_agent_ready?
+ unless host_agent_ready?
+ ::Instana.logger.warn "Host agent not available. Will retry periodically. (Set env INSTANA_QUIET=1 to shut these messages off)"
+ end
loop do
if @state == :unannounced
@collect_timer.pause
@announce_timer.resume