Improved logging.
This commit is contained in:
parent
faec7259b2
commit
d55aaa4a0c
|
@ -150,7 +150,7 @@ public class BufferingFlowControlStrategy extends AbstractFlowControlStrategy
|
|||
else
|
||||
{
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Data consumed, stream recv window level {}/{} for {}", level, maxLevel, session);
|
||||
LOG.debug("Data consumed, stream recv window level {}/{} for {}", level, maxLevel, stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -202,10 +202,11 @@ public class BufferingFlowControlStrategy extends AbstractFlowControlStrategy
|
|||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return String.format("%s@%x[ratio=%.2f,sessionStallTime=%dms,streamsStallTime=%dms]",
|
||||
return String.format("%s@%x[ratio=%.2f,sessionLevel=%s,sessionStallTime=%dms,streamsStallTime=%dms]",
|
||||
getClass().getSimpleName(),
|
||||
hashCode(),
|
||||
bufferRatio,
|
||||
sessionLevel,
|
||||
getSessionStallTime(),
|
||||
getStreamsStallTime());
|
||||
}
|
||||
|
|
|
@ -276,4 +276,10 @@ public class HttpChannelOverHTTP2 extends HttpChannel
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return String.format("%s#%d", super.toString(), getStream().getId());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue