Improved logging.

This commit is contained in:
Simone Bordet 2014-06-11 08:56:39 +02:00
parent 7c5492acad
commit 347324b71b
1 changed files with 2 additions and 0 deletions

View File

@ -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);