From dc147d6455bb4a2db48627489e1ff07d0dacc5dd Mon Sep 17 00:00:00 2001 From: Ethan Richardson Date: Thu, 26 Apr 2018 13:49:09 -0500 Subject: [PATCH 1/2] fix for connection log bug --- debug-service.js | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/debug-service.js b/debug-service.js index 49474d8..156ce05 100644 --- a/debug-service.js +++ b/debug-service.js @@ -53,18 +53,30 @@ class DebugService { : ` - ${effectiveType}`}`; }; if (this.hasBeenDisconnected) { - this.seperator( - `[NETINFO] RECONNECTED TO ${buildConnectionString()}` - ); + type + ? this.seperator( + `[NETINFO] RECONNECTED TO ${buildConnectionString()}` + ); + : this.seperator( + `[NETINFO] RECONNECTED` + ); } else { if (this.connectionHasBeenEstablished) { - this.seperator( - `[NETINFO] CHANGED TO ${buildConnectionString()}` - ); + type + ? this.seperator( + `[NETINFO] CHANGED TO ${buildConnectionString()}` + ); + : this.seperator( + `[NETINFO] CHANGED` + ); } else { - this.seperator( - `[NETINFO] CONNECTION TO ${buildConnectionString()}` - ); + type + ? this.seperator( + `[NETINFO] CONNECTION TO ${buildConnectionString()}` + ); + : this.seperator( + `[NETINFO] CONNECTION` + ); } } } From d924bbecfc2b94498c47e1417ce24e3808be11f0 Mon Sep 17 00:00:00 2001 From: Ethan Richardson Date: Thu, 26 Apr 2018 13:56:12 -0500 Subject: [PATCH 2/2] Update debug-service.js --- debug-service.js | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/debug-service.js b/debug-service.js index 156ce05..c147c57 100644 --- a/debug-service.js +++ b/debug-service.js @@ -53,30 +53,18 @@ class DebugService { : ` - ${effectiveType}`}`; }; if (this.hasBeenDisconnected) { - type - ? this.seperator( - `[NETINFO] RECONNECTED TO ${buildConnectionString()}` - ); - : this.seperator( - `[NETINFO] RECONNECTED` - ); + this.seperator( + type ? `[NETINFO] RECONNECTED TO ${buildConnectionString()}` : `[NETINFO] RECONNECTED` + ); } else { if (this.connectionHasBeenEstablished) { - type - ? this.seperator( - `[NETINFO] CHANGED TO ${buildConnectionString()}` - ); - : this.seperator( - `[NETINFO] CHANGED` - ); + this.seperator( + type ? `[NETINFO] CHANGED TO ${buildConnectionString()}` : `[NETINFO] CHANGED` + ); } else { - type - ? this.seperator( - `[NETINFO] CONNECTION TO ${buildConnectionString()}` - ); - : this.seperator( - `[NETINFO] CONNECTION` - ); + this.seperator( + type ? `[NETINFO] CONNECTION TO ${buildConnectionString()}` : `[NETINFO] CONNECTION` + ); } } }