debug log full stacktraces only in processConnectionError and processHandlerError
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
c9cd27ee4d
commit
9be277a810
|
@ -470,7 +470,7 @@ public class WebSocketConnection extends AbstractConnection implements Connectio
|
|||
catch (Throwable t)
|
||||
{
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Error during fillAndParse()", t);
|
||||
LOG.debug("Error during fillAndParse() {}", t.toString());
|
||||
|
||||
if (networkBuffer != null)
|
||||
{
|
||||
|
|
|
@ -391,7 +391,7 @@ public class WebSocketCoreSession implements IncomingFrames, CoreSession, Dumpab
|
|||
public void processConnectionError(Throwable cause, Callback callback)
|
||||
{
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("processConnectionError {} {}", this, cause.toString());
|
||||
LOG.debug("processConnectionError {}", this, cause);
|
||||
|
||||
int code;
|
||||
if (cause instanceof CloseException)
|
||||
|
@ -425,7 +425,7 @@ public class WebSocketCoreSession implements IncomingFrames, CoreSession, Dumpab
|
|||
public void processHandlerError(Throwable cause, Callback callback)
|
||||
{
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("processHandlerError {} {}", this, cause.toString());
|
||||
LOG.debug("processHandlerError {}", this, cause);
|
||||
|
||||
int code;
|
||||
if (cause instanceof CloseException)
|
||||
|
@ -554,9 +554,7 @@ public class WebSocketCoreSession implements IncomingFrames, CoreSession, Dumpab
|
|||
}
|
||||
catch (Throwable t)
|
||||
{
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.warn("Invalid outgoing frame: {}", frame, t);
|
||||
|
||||
LOG.warn("Invalid outgoing frame: {}", frame, t);
|
||||
callback.failed(t);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue