lib/rabbit/publishing.rb in rabbit_messaging-0.9.0 vs lib/rabbit/publishing.rb in rabbit_messaging-0.10.0

- old
+ new

@@ -47,14 +47,14 @@ end def log(message) @logger ||= Rabbit.config.publish_logger - headers = [ - message.real_exchange_name, message.routing_key, message.event, - message.confirm_select? ? "confirm" : "no-confirm" + metadata = [ + message.real_exchange_name, message.routing_key, message.headers, + message.event, message.confirm_select? ? "confirm" : "no-confirm" ] - @logger.debug "#{headers.join ' / '}: #{message.data}" + @logger.debug "#{metadata.join ' / '}: #{message.data}" end end end