Filter out telemetry from when not needed
This commit is contained in:
1 parent
207f96c882
commit
0c79787161
16 files changed
+63
-56
No files matched your search
@@ -83,9 +83,7 @@ class LongPoller
|
||||
|
||||
' Not receiving data for LONG_POLL_TIMEOUT_MS seconds might be a sign of a dead connection
|
||||
if m.socket_timer.TotalMilliseconds() > LONG_POLL_TIMEOUT_MS
|
||||
m.noTelemetry = true
|
||||
LogWarn("Timeout after", LONG_POLL_TIMEOUT_MS, "ms")
|
||||
m.noTelemetry = false
|
||||
LogWarnNoTelemetry("Timeout after", LONG_POLL_TIMEOUT_MS, "ms")
|
||||
m.CloseSocket()
|
||||
return false
|
||||
end if
|
||||
|
||||
@@ -555,7 +555,11 @@ class LoungeApi
|
||||
})
|
||||
|
||||
if not response.IsSuccess()
|
||||
LogError(response.ErrorMessage())
|
||||
if response.StatusCode() = 400 and response.ErrorMessage().InStr("Unknown SID") <> -1
|
||||
LogErrorNoTelemetry(response.ErrorMessage())
|
||||
else
|
||||
LogError(response.ErrorMessage())
|
||||
end if
|
||||
end if
|
||||
|
||||
m.outgoingMessagesRequests.Delete(key)
|
||||
|
||||
Reference in new issue
Block a user