pull/835/head
Ryan Tharp 5 years ago
parent 031330154b
commit d0f0cac31e

@ -499,7 +499,10 @@ class LokiAppDotNetServerAPI {
try { try {
response = options.textResponse ? respStr : JSON.parse(respStr); response = options.textResponse ? respStr : JSON.parse(respStr);
} catch (e) { } catch (e) {
log.warn(`_sendToProxy Could not parse inner JSON [${respStr}]`, endpoint); log.warn(
`_sendToProxy Could not parse inner JSON [${respStr}]`,
endpoint
);
} }
} else { } else {
log.warn( log.warn(
@ -959,13 +962,13 @@ class LokiPublicChannelAPI {
`LokiPublicChannel open ${this.channelId} on ${ `LokiPublicChannel open ${this.channelId} on ${
this.serverAPI.baseServerUrl this.serverAPI.baseServerUrl
}` }`
) );
if (this.running) { if (this.running) {
log.warn( log.warn(
`LokiPublicChannel already open ${this.channelId} on ${ `LokiPublicChannel already open ${this.channelId} on ${
this.serverAPI.baseServerUrl this.serverAPI.baseServerUrl
}` }`
) );
} }
this.running = true; this.running = true;
if (!this.timers.channel) { if (!this.timers.channel) {
@ -988,13 +991,13 @@ class LokiPublicChannelAPI {
`LokiPublicChannel close ${this.channelId} on ${ `LokiPublicChannel close ${this.channelId} on ${
this.serverAPI.baseServerUrl this.serverAPI.baseServerUrl
}` }`
) );
if (!this.running) { if (!this.running) {
log.warn( log.warn(
`LokiPublicChannel already open ${this.channelId} on ${ `LokiPublicChannel already open ${this.channelId} on ${
this.serverAPI.baseServerUrl this.serverAPI.baseServerUrl
}` }`
) );
} }
this.running = false; this.running = false;
if (this.timers.channel) { if (this.timers.channel) {

Loading…
Cancel
Save