Rate limit syslog errors
This commit is contained in:
1 parent
d271a168e4
commit
a81063587f
2 files changed
+13
-1
No files matched your search
+5
-1
@@ -7,7 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
- Nothing worth mentioning yet.
|
### Fixed
|
||||||
|
|
||||||
|
- Small improvements in parser
|
||||||
|
- Try force refresh visitor data when it fails
|
||||||
|
- Rate limit syslog errors
|
||||||
|
|
||||||
## [0.41.3] - 2025-09-03
|
## [0.41.3] - 2025-09-03
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ function Init()
|
|||||||
scene.enableSystemLogType = "http.complete"
|
scene.enableSystemLogType = "http.complete"
|
||||||
scene.enableSystemLogType = "bandwidth.minute"
|
scene.enableSystemLogType = "bandwidth.minute"
|
||||||
#end if
|
#end if
|
||||||
|
m.sysLogEventDropCounter = 0
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -112,7 +113,14 @@ function OnLineSysLog(event as object, dateTime as object, logsFile as string, b
|
|||||||
print line
|
print line
|
||||||
buffer.FromAsciiString(line + `\n`)
|
buffer.FromAsciiString(line + `\n`)
|
||||||
buffer.AppendFile(logsFile)
|
buffer.AppendFile(logsFile)
|
||||||
|
|
||||||
|
' Only report 1 in 10 system log errors
|
||||||
|
' 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.logError = line
|
m.global.telemetry.logError = line
|
||||||
|
end if
|
||||||
|
m.sysLogEventDropCounter = (m.sysLogEventDropCounter + 1) mod 10
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnLineLogMonitorMemoryWarning(event as object, dateTime as object, logsFile as string, buffer as object) as void
|
function OnLineLogMonitorMemoryWarning(event as object, dateTime as object, logsFile as string, buffer as object) as void
|
||||||
|
|||||||
Reference in new issue
Block a user