Details
Description
Learner.java
void readPacket(QuorumPacket pp) throws IOException { ... long traceMask = ZooTrace.SERVER_PACKET_TRACE_MASK; if (pp.getType() == Leader.PING) { traceMask = ZooTrace.SERVER_PING_TRACE_MASK; } if (LOG.isTraceEnabled()) { ZooTrace.logQuorumPacket(LOG, traceMask, 'i', pp); } }
The traceMask only matters if trace is enabled, so move it and the associated code into the logging guard.
Attachments
Issue Links
- links to