[skip ci] adjust telemetry events
This commit is contained in:
1 parent
319457bada
commit
e7f4b3fee1
2 files changed
+22
-3
No files matched your search
@@ -325,9 +325,16 @@ class LoungeApi
|
|||||||
LogInfo(commandIndex, commandType)
|
LogInfo(commandIndex, commandType)
|
||||||
m[handler](commandIndex, commandType, commandArgs, messagesToSend)
|
m[handler](commandIndex, commandType, commandArgs, messagesToSend)
|
||||||
else
|
else
|
||||||
LogWarn("Unknown command type:", commandType, "command:", command)
|
fingerprint = "Unknown command type:" + ToString(commandType)
|
||||||
|
message = fingerprint + " command:" + ToString(command)
|
||||||
|
LogWarnNoTelemetry(message)
|
||||||
|
LogTelemetryEvent({
|
||||||
|
level: "warning"
|
||||||
|
message: message
|
||||||
|
fingerprint: fingerprint
|
||||||
|
})
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
throw `Unknown command type: ${commandType} command: ${ToString(command)}`
|
throw message
|
||||||
#end if
|
#end if
|
||||||
end if
|
end if
|
||||||
end for
|
end for
|
||||||
|
|||||||
@@ -99,7 +99,19 @@ function ExecuteJob() as void
|
|||||||
streamUrls = CreateStreamUrls(metadata, service, preferencesNode, backend, playletServerPort)
|
streamUrls = CreateStreamUrls(metadata, service, preferencesNode, backend, playletServerPort)
|
||||||
if streamUrls.Count() = 0
|
if streamUrls.Count() = 0
|
||||||
contentNode.addFields({ metadata: metadata })
|
contentNode.addFields({ metadata: metadata })
|
||||||
JobError("No playable streams found for this video.")
|
error = "No playable streams found for this video."
|
||||||
|
lastPlayerResponse = ValidString(ReadAsciiFile("cachefs:/last_player_response.json"))
|
||||||
|
LogTelemetryEvent({
|
||||||
|
level: "error"
|
||||||
|
message: error
|
||||||
|
fingerprint: error
|
||||||
|
attachments: [{
|
||||||
|
filename: "last_player_response.json"
|
||||||
|
content_type: "application/json"
|
||||||
|
data: lastPlayerResponse
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
JobError(error)
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user