[skip ci] Syslog filtering
This commit is contained in:
1 parent
9275a140ef
commit
140aebc1d5
3 files changed
+12
-4
No files matched your search
@@ -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/),
|
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).
|
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
|
## [0.41.4] - 2025-09-04
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -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
|
' They're usually repetitive, one is reported for each stream in a DASH
|
||||||
' when a video is blocked
|
' when a video is blocked
|
||||||
if m.sysLogEventDropCounter = 0
|
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
|
end if
|
||||||
m.sysLogEventDropCounter = (m.sysLogEventDropCounter + 1) mod 10
|
m.sysLogEventDropCounter = (m.sysLogEventDropCounter + 1) mod 10
|
||||||
end function
|
end function
|
||||||
@@ -129,7 +133,7 @@ function OnLineLogMonitorMemoryWarning(event as object, dateTime as object, logs
|
|||||||
print line
|
print line
|
||||||
buffer.FromAsciiString(line + `\n`)
|
buffer.FromAsciiString(line + `\n`)
|
||||||
buffer.AppendFile(logsFile)
|
buffer.AppendFile(logsFile)
|
||||||
m.global.telemetry.logWarn = line
|
m.global.telemetry.LogWarn = line
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnLineLogDeviceInfoMemoryWarning(event as object, dateTime as object, logsFile as string, buffer as object) as void
|
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
|
print line
|
||||||
buffer.FromAsciiString(line + `\n`)
|
buffer.FromAsciiString(line + `\n`)
|
||||||
buffer.AppendFile(logsFile)
|
buffer.AppendFile(logsFile)
|
||||||
m.global.telemetry.logWarn = line
|
m.global.telemetry.LogWarn = line
|
||||||
end function
|
end function
|
||||||
|
|
||||||
' Note: although the timestamp should be captured in the caller, not the logger,
|
' Note: although the timestamp should be captured in the caller, not the logger,
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ namespace Sentry
|
|||||||
response = request.Await()
|
response = request.Await()
|
||||||
if not response.IsSuccess()
|
if not response.IsSuccess()
|
||||||
#if DEBUG
|
#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
|
#end if
|
||||||
|
|
||||||
statusCode = response.StatusCode()
|
statusCode = response.StatusCode()
|
||||||
|
|||||||
Reference in new issue
Block a user