From 277c5e0562d430429cda18bfdbb2da9350419d32 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sat, 25 Apr 2026 10:52:30 -0400 Subject: [PATCH] [skip ci] ignore normal errors --- playlet-lib/src/components/Logger/Logger.bs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/playlet-lib/src/components/Logger/Logger.bs b/playlet-lib/src/components/Logger/Logger.bs index 4e33b41a..f134c9dc 100644 --- a/playlet-lib/src/components/Logger/Logger.bs +++ b/playlet-lib/src/components/Logger/Logger.bs @@ -115,12 +115,18 @@ function OnLineSysLog(event as object, dateTime as object, logsFile as string, b if info.LogType <> "http.error" return end if + httpCode = ValidInt(info.HttpCode) + status = ValidString(info.Status) + if (httpCode >= 200 and httpCode < 300) and status = "generalsocketerror" + return + end if + line = FormatTime(dateTime) + "[ERROR][SysLog] " + ToString(info) print line buffer.FromAsciiString(line + `\n`) buffer.AppendFile(logsFile) - fingerprint = `SysLog${info.Status}${info.LogType}${info.HttpCode}${info.Method}` + fingerprint = `SysLog${status}${info.LogType}${httpCode}${info.Method}` if ThrottleEvent("SysLogError", fingerprint, 60) return