Fixing logging format specifier bug

This commit is contained in:
Joakim Erdfelt 2012-07-10 14:07:04 -07:00
parent 1f25e9cee1
commit 5d796488e2
2 changed files with 12 additions and 2 deletions

View File

@ -225,7 +225,7 @@ public class WebSocketAsyncConnection extends AbstractAsyncConnection implements
finally
{
// TODO: does fillInterested need to be called again?
fillInterested();
// fillInterested();
setCurrentConnection(null);
bufferPool.release(buffer);
}

View File

@ -434,6 +434,16 @@ public class Parser
@Override
public String toString()
{
return String.format("%s(parser=%s)",getClass().getSimpleName());
StringBuilder builder = new StringBuilder();
builder.append("Parser [state=");
builder.append(state);
builder.append(", cursor=");
builder.append(cursor);
builder.append(", payloadLength=");
builder.append(payloadLength);
builder.append(", frame=");
builder.append(frame);
builder.append("]");
return builder.toString();
}
}