lib/instana/agent/tasks.rb in instana-1.9.7 vs lib/instana/agent/tasks.rb in instana-1.10.0.slimfast

- old
+ new

@@ -40,9 +40,9 @@ req.body = Oj.dump(payload, OJ_OPTIONS) ::Instana.logger.debug "Responding to agent request: #{req.inspect}" make_host_agent_request(req) rescue StandardError => e - Instana.logger.debug "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}" - Instana.logger.debug e.backtrace.join("\r\n") + Instana.logger.debug { "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}" } + Instana.logger.debug { e.backtrace.join("\r\n") } end end