mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 20:47:04 +00:00
Clean up extra verbose logging after solidifying reconnection
This commit is contained in:
parent
1df658b7eb
commit
a2a3f4caed
1 changed files with 5 additions and 5 deletions
|
|
@ -403,11 +403,11 @@ namespace PepperDash.Essentials
|
||||||
/// <param name="o"></param>
|
/// <param name="o"></param>
|
||||||
void ConnectWebsocketClient()
|
void ConnectWebsocketClient()
|
||||||
{
|
{
|
||||||
Debug.Console(1, this, Debug.ErrorLogLevel.Notice, "Initializing Stream client to server.");
|
Debug.Console(1, this, "Initializing Stream client to server.");
|
||||||
|
|
||||||
if (WSClient != null)
|
if (WSClient != null)
|
||||||
{
|
{
|
||||||
Debug.Console(1, this, Debug.ErrorLogLevel.Notice, "Cleaning up previous socket");
|
Debug.Console(1, this, "Cleaning up previous socket");
|
||||||
CleanUpWebsocketClient();
|
CleanUpWebsocketClient();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -510,7 +510,7 @@ namespace PepperDash.Essentials
|
||||||
/// <param name="command"></param>
|
/// <param name="command"></param>
|
||||||
void CleanUpWebsocketClient()
|
void CleanUpWebsocketClient()
|
||||||
{
|
{
|
||||||
Debug.Console(1, this, Debug.ErrorLogLevel.Notice, "Disconnecting websocket");
|
Debug.Console(1, this, "Disconnecting websocket");
|
||||||
if (WSClient != null)
|
if (WSClient != null)
|
||||||
{
|
{
|
||||||
WSClient.SendCallBack = null;
|
WSClient.SendCallBack = null;
|
||||||
|
|
@ -555,7 +555,7 @@ namespace PepperDash.Essentials
|
||||||
/// <param name="o">For CTimer callback. Not used</param>
|
/// <param name="o">For CTimer callback. Not used</param>
|
||||||
void HeartbeatExpiredTimerCallback(object o)
|
void HeartbeatExpiredTimerCallback(object o)
|
||||||
{
|
{
|
||||||
Debug.Console(1, this, Debug.ErrorLogLevel.Notice, "Heartbeat Timer Expired.");
|
Debug.Console(1, this, "Heartbeat Timer Expired.");
|
||||||
if (ServerHeartbeatCheckTimer != null)
|
if (ServerHeartbeatCheckTimer != null)
|
||||||
{
|
{
|
||||||
ServerHeartbeatCheckTimer.Stop();
|
ServerHeartbeatCheckTimer.Stop();
|
||||||
|
|
@ -734,7 +734,7 @@ namespace PepperDash.Essentials
|
||||||
}
|
}
|
||||||
else if (type == "close")
|
else if (type == "close")
|
||||||
{
|
{
|
||||||
Debug.Console(1, this, Debug.ErrorLogLevel.Notice, "Received close message from server.");
|
Debug.Console(1, this, "Received close message from server.");
|
||||||
// DisconnectWebsocketClient();
|
// DisconnectWebsocketClient();
|
||||||
|
|
||||||
if (ServerHeartbeatCheckTimer != null)
|
if (ServerHeartbeatCheckTimer != null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue