[skip ci] adjust telemetry events

This commit is contained in:
Brahim Hadriche committed 2025-11-08 13:52:57 -05:00
1 parent 319457bada
commit e7f4b3fee1
2 files changed
+22 -3

No files matched your search

@@ -325,9 +325,16 @@ class LoungeApi
LogInfo(commandIndex, commandType)
m[handler](commandIndex, commandType, commandArgs, messagesToSend)
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
throw `Unknown command type: ${commandType} command: ${ToString(command)}`
throw message
#end if
end if
end for