Improved logging.
This commit is contained in:
parent
7c5492acad
commit
347324b71b
|
@ -94,6 +94,8 @@ public class Parser
|
|||
case BODY:
|
||||
{
|
||||
int type = headerParser.getFrameType();
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Parsing {} frame", FrameType.from(type));
|
||||
if (type < 0 || type >= bodyParsers.length)
|
||||
{
|
||||
notifyConnectionFailure(ErrorCode.PROTOCOL_ERROR, "unknown_frame_type_" + type);
|
||||
|
|
Loading…
Reference in New Issue