lib/instana/util.rb in instana-1.9.7 vs lib/instana/util.rb in instana-1.10.0.slimfast
- old
+ new
@@ -117,12 +117,12 @@
end
end
data
rescue => 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") }
return data
end
# Used in class initialization and after a fork, this method
# collects up process information
@@ -185,11 +185,11 @@
end
return File.basename($0)
rescue Exception => e
Instana.logger.info "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}"
- Instana.logger.debug e.backtrace.join("\r\n")
+ Instana.logger.debug { e.backtrace.join("\r\n") }
end
# Get the current time in milliseconds from the epoch
#
# @return [Integer] the current time in milliseconds
@@ -229,11 +229,11 @@
return String.new
end
[id.to_i].pack('q>').unpack('H*')[0].gsub(/^0+/, '')
rescue => e
Instana.logger.info "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}"
- Instana.logger.debug e.backtrace.join("\r\n")
+ Instana.logger.debug { e.backtrace.join("\r\n") }
end
# Convert a received header value into a valid ID
#
# @param header_id [String] the header value to be converted
@@ -252,10 +252,10 @@
header_id = ("0" * missing) + header_id
end
[header_id].pack("H*").unpack("q>")[0]
rescue => e
Instana.logger.info "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}"
- Instana.logger.debug e.backtrace.join("\r\n")
+ Instana.logger.debug { e.backtrace.join("\r\n") }
end
end
end
end