[infinispan-dev] More verbose logging

Radim Vansa rvansa at redhat.com
Wed Feb 20 08:01:49 EST 2013


I'd rather alter the toString behaviour with -Dinfinispan.commands.debug than the log verbosity level.
You have precedent in org.infinispan.util.Util.printArray (-Dinfinispan.arrays.debug) used by ByteArrayKey.toString

Radim

----- Original Message -----
| From: "Adrian Nistor" <anistor at redhat.com>
| 
| What if we include that verbose info in toString() only if trace is
| enabled? :)
| 
| On 02/20/2013 02:36 PM, Dan Berindei wrote:
| 
| 
| Yeah, we couldn't introduce a RpcDispatcher.includeCacheEntries
| category anyway because the cache entries are included in the
| command's toString() - the logger can't do anything to filter them
| out.
| 
| 
| I think we could eliminate the cache entries from
| StateResponseCommand.toString() (and the segment owners from
| ConsistentHash.toString()), and only log them separately, under a
| different category/class name.
| 


More information about the infinispan-dev mailing list