diff --git a/lib/instana/instrumentation/bunny.rb b/lib/instana/instrumentation/bunny.rb index dc7cdeed..5e9624ba 100644 --- a/lib/instana/instrumentation/bunny.rb +++ b/lib/instana/instrumentation/bunny.rb @@ -121,6 +121,7 @@ def extract_context_from_headers(properties) end def log_error(error) + # Log errors on to console if INSTANA_DEBUG is enabled ::Instana.logger.debug { "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{error.message}" } end end