gemmellr commented on PR #4418:
URL: 
https://github.com/apache/activemq-artemis/pull/4418#issuecomment-1498773294

   
   > The idea of this feature is to be a hidden feature...
   > 
   > So, I am going to use the following logger to enable this type of 
debugging:
   > 
   > private static final Logger refLogger = 
LoggerFactory.getLogger(MethodHandles.lookup().lookupClass().getName() + 
".REF_DEBUG");
   
   It will certainly be hidden, people will enable it without knowing they are 
since it is a descendent in the regular class name logger hierarchy. Anyone 
simply enabling debug logging for the class (or more likely, many classes / 
further up the hierarchy) will get the change in actual system behaviour of the 
ref counting debug and saving lots of stacktraces. They would have to know 
about the change in behaviour and reconfigure the specific ref count logger 
back off in order to restore the prior behaviour and only add debug output for 
the normal system behaviour.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to