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
@@ -445,9 +445,7 @@ function OnVideoPlayerStateChange() as void
|
||||
errorInfo = m.top.errorInfo
|
||||
errorData = GetPlayerErrorData(content.videoId, errorInfo)
|
||||
|
||||
m.noTelemetry = true
|
||||
LogError(errorData.title, errorData.body)
|
||||
m.noTelemetry = false
|
||||
LogErrorNoTelemetry(errorData.title, errorData.body)
|
||||
m.global.telemetry.LogEvent = {
|
||||
level: "error"
|
||||
message: errorData.title + `\n` + errorData.body
|
||||
@@ -501,9 +499,7 @@ function OnVideoPlayerStateChange() as void
|
||||
errorInfo = m.top.errorInfo
|
||||
errorData = GetPlayerErrorData(content.videoId, errorInfo)
|
||||
|
||||
m.noTelemetry = true
|
||||
LogError(errorData.title, errorData.body)
|
||||
m.noTelemetry = false
|
||||
LogErrorNoTelemetry(errorData.title, errorData.body)
|
||||
m.global.telemetry.LogEvent = {
|
||||
level: "error"
|
||||
message: errorData.title + `\n` + errorData.body
|
||||
|
||||
Reference in new issue
Block a user