debug log full stacktraces only in processConnectionError and processHandlerError

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-09-14 21:14:51 +10:00
parent c9cd27ee4d
commit 9be277a810
2 changed files with 4 additions and 6 deletions

View File

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

View File

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