fix(SWT): Improved logging

This commit is contained in:
MrGadget 2024-09-20 12:47:20 -04:00
parent fdd097b778
commit 2f874d3dc4
4 changed files with 5 additions and 5 deletions

View File

@ -101,7 +101,7 @@ void ConnectAndReceiveLoop(Uri serverAddress)
ReceiveLoop.Loop(config);
}
catch (ThreadInterruptedException e) { Log.InfoException(e); }
catch (ThreadAbortException e) { Log.Error("[SWT-WebSocketClientStandAlone]: Thread Abort Exception"); }
catch (ThreadAbortException) { Log.Error("[SWT-WebSocketClientStandAlone]: Thread Abort Exception"); }
catch (Exception e) { Log.Exception(e); }
finally
{

View File

@ -72,7 +72,7 @@ public static void Loop(Config config)
}
}
catch (ThreadInterruptedException e) { Log.InfoException(e); }
catch (ThreadAbortException e) { Log.Error("[SWT-ReceiveLoop]: Thread Abort Exception"); }
catch (ThreadAbortException) { Log.Error("[SWT-ReceiveLoop]: Thread Abort Exception"); }
catch (ObjectDisposedException e) { Log.InfoException(e); }
catch (ReadHelperException e) { Log.InfoException(e); }
catch (SocketException e)

View File

@ -116,7 +116,7 @@ public static void Loop(Config config)
Log.Verbose("[SWT-SendLoop]: {0} Not Connected", conn);
}
catch (ThreadInterruptedException e) { Log.InfoException(e); }
catch (ThreadAbortException e) { Log.Error("[SWT-SendLoop]: Thread Abort Exception"); }
catch (ThreadAbortException) { Log.Error("[SWT-SendLoop]: Thread Abort Exception"); }
catch (Exception e) { Log.Exception(e); }
finally
{

View File

@ -97,7 +97,7 @@ void acceptLoop()
}
}
catch (ThreadInterruptedException e) { Log.InfoException(e); }
catch (ThreadAbortException e) { Log.Error("[SWT-WebSocketServer]: Thread Abort Exception"); }
catch (ThreadAbortException) { Log.Error("[SWT-WebSocketServer]: Thread Abort Exception"); }
catch (Exception e) { Log.Exception(e); }
}
@ -161,7 +161,7 @@ void HandshakeAndReceiveLoop(Connection conn)
ReceiveLoop.Loop(receiveConfig);
}
catch (ThreadInterruptedException e) { Log.InfoException(e); }
catch (ThreadAbortException e) { Log.Error("[SWT-WebSocketServer]: Thread Abort Exception"); }
catch (ThreadAbortException) { Log.Error("[SWT-WebSocketServer]: Thread Abort Exception"); }
catch (Exception e) { Log.Exception(e); }
finally
{