Refactor custom events

This commit is contained in:
Brahim Hadriche committed 2025-09-06 13:58:42 -04:00
1 parent c9a0e96905
commit 47a7ea21e6
6 files changed
+14 -11

No files matched your search

+2 -2
View File
@@ -118,11 +118,11 @@ function OnLineSysLog(event as object, dateTime as object, logsFile as string, b
' They're usually repetitive, one is reported for each stream in a DASH
' when a video is blocked
if m.sysLogEventDropCounter = 0
m.global.telemetry.LogEvent = {
LogTelemetryEvent({
level: "error"
message: line
fingerprint: ["SysLog", info.Status, info.LogType, info.HttpCode, info.Method]
}
})
end if
m.sysLogEventDropCounter = (m.sysLogEventDropCounter + 1) mod 10
end function