FSchumacher commented on a change in pull request #304: Add missing log param
URL: https://github.com/apache/activemq/pull/304#discussion_r347806513
 
 

 ##########
 File path: 
activemq-broker/src/main/java/org/apache/activemq/broker/region/Queue.java
 ##########
 @@ -2100,7 +2100,7 @@ private PendingList doPageInForDispatch(boolean force, 
boolean processExpired, i
                                 ConnectionContext connectionContext = 
createConnectionContext();
                                 dropMessage(ref);
                                 if (gotToTheStore(ref.getMessage())) {
-                                    LOG.debug("Duplicate message {} from 
cursor, removing from store", this, ref.getMessage());
+                                    LOG.debug("{}, duplicate message {} from 
cursor, removing from store", this, ref.getMessage());
 
 Review comment:
   Right, the problem was, that `this` was used as first parameter in the log 
format string that had only one parameter. So the second  parameter 
`ref.getMessage()` was silently dropped.
   As I didn't know, if `this` was needed for your analysis of the log 
messages, I added a second parameter placeholder.
   I will try to update this PR.
   
   It seems, that `this` is used a lot in the log messages in the rest of the 
code around. You might want to have a look at those occurrences as well. 

----------------------------------------------------------------
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

Reply via email to