michaelandrepearce commented on a change in pull request #28: NO-JIRA: Extend
logging
URL: https://github.com/apache/activemq-nms-amqp/pull/28#discussion_r322228978
##########
File path: src/NMS.AMQP/NmsMessageConsumer.cs
##########
@@ -219,19 +225,24 @@ private void DeliverNextPending()
{
var envelope = messageQueue.DequeueNoWait();
if (envelope == null)
+ {
+ if (Tracer.IsDebugEnabled)
+ Tracer.Debug($"No message available for
delivery.");
+
return;
+ }
if (IsMessageExpired(envelope))
{
if (Tracer.IsDebugEnabled)
- Tracer.Debug($"{Info.Id} filtered expired
message: {envelope.Message.NMSMessageId}");
+ Tracer.Error($"{Info.Id} filtered expired
message: {envelope.Message.NMSMessageId}");
Review comment:
should be debug as is the if statement doing the tracer check is at debug,
so wouldnt reach here if debug was disabled.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services