Refactor custom events
This commit is contained in:
1 parent
c9a0e96905
commit
47a7ea21e6
6 files changed
+14
-11
No files matched your search
@@ -112,7 +112,7 @@ namespace InnertubeService
|
||||
return GetVideoMetadata(videoId, options)
|
||||
end if
|
||||
if code = "MISSING_FORMAT_FIELD"
|
||||
m.global.telemetry.LogEvent = {
|
||||
LogTelemetryEvent({
|
||||
level: "error"
|
||||
message: code
|
||||
fingerprint: code
|
||||
@@ -125,7 +125,7 @@ namespace InnertubeService
|
||||
content_type: "application/json"
|
||||
data: playerResponse.Text()
|
||||
}]
|
||||
}
|
||||
})
|
||||
end if
|
||||
throw exception
|
||||
end try
|
||||
|
||||
@@ -1745,8 +1745,7 @@ namespace Innertube
|
||||
nodeDataString = FormatJson(nodeData)
|
||||
|
||||
LogWarnNoTelemetry(message + `\n` + nodeDataString)
|
||||
|
||||
m.global.telemetry.LogEvent = {
|
||||
LogTelemetryEvent ({
|
||||
level: "warning"
|
||||
message: message
|
||||
fingerprint: message
|
||||
@@ -1759,6 +1758,6 @@ namespace Innertube
|
||||
content_type: "text/plain"
|
||||
data: context.response.request.ToCurlCommand()
|
||||
}]
|
||||
}
|
||||
})
|
||||
end function
|
||||
end namespace
|
||||
Reference in new issue
Block a user