[skip ci] Syslog filtering

This commit is contained in:
Brahim Hadriche committed 2025-09-04 11:59:13 -04:00
1 parent 9275a140ef
commit 140aebc1d5
3 files changed
+12 -4

No files matched your search

+4
View File
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
- Nothing worth mentioning yet.
## [0.41.4] - 2025-09-04
### Fixed
+7 -3
View File
@@ -118,7 +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.logError = line
m.global.telemetry.LogEvent = {
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
@@ -129,7 +133,7 @@ function OnLineLogMonitorMemoryWarning(event as object, dateTime as object, logs
print line
buffer.FromAsciiString(line + `\n`)
buffer.AppendFile(logsFile)
m.global.telemetry.logWarn = line
m.global.telemetry.LogWarn = line
end function
function OnLineLogDeviceInfoMemoryWarning(event as object, dateTime as object, logsFile as string, buffer as object) as void
@@ -148,7 +152,7 @@ function OnLineLogDeviceInfoMemoryWarning(event as object, dateTime as object, l
print line
buffer.FromAsciiString(line + `\n`)
buffer.AppendFile(logsFile)
m.global.telemetry.logWarn = line
m.global.telemetry.LogWarn = line
end function
' Note: although the timestamp should be captured in the caller, not the logger,
@@ -78,7 +78,7 @@ namespace Sentry
response = request.Await()
if not response.IsSuccess()
#if DEBUG
LogErrorNoTelemetry("Failed to send event to Sentry:", response.ErrorMessage())
LogErrorNoTelemetry("Failed to send event to Sentry:", response.ErrorMessage(), `\nHeaders:`, response.Headers())
#end if
statusCode = response.StatusCode()