[skip ci] a couple of telemetry fixes
This commit is contained in:
1 parent
277c5e0562
commit
97f4a0ed61
2 files changed
+3
-4
No files matched your search
@@ -116,8 +116,7 @@ function OnLineSysLog(event as object, dateTime as object, logsFile as string, b
|
||||
return
|
||||
end if
|
||||
httpCode = ValidInt(info.HttpCode)
|
||||
status = ValidString(info.Status)
|
||||
if (httpCode >= 200 and httpCode < 300) and status = "generalsocketerror"
|
||||
if httpCode >= 200 and httpCode < 300
|
||||
return
|
||||
end if
|
||||
|
||||
@@ -126,7 +125,7 @@ function OnLineSysLog(event as object, dateTime as object, logsFile as string, b
|
||||
buffer.FromAsciiString(line + `\n`)
|
||||
buffer.AppendFile(logsFile)
|
||||
|
||||
fingerprint = `SysLog${status}${info.LogType}${httpCode}${info.Method}`
|
||||
fingerprint = `SysLog${info.Status}${info.LogType}${httpCode}${info.Method}`
|
||||
|
||||
if ThrottleEvent("SysLogError", fingerprint, 60)
|
||||
return
|
||||
|
||||
@@ -15,7 +15,7 @@ end function
|
||||
function OnNodeReady() as void
|
||||
m.top.ObserveField("enabled", FuncName(OnEnabledChanged))
|
||||
m.preferences.ObserveFieldScoped("dev.diagnostics.enabled", FuncName(OnPreferencesChanged))
|
||||
enabled = m.preferences["dev.diagnostics.enabled"]
|
||||
enabled = ValidBool(m.preferences["dev.diagnostics.enabled"])
|
||||
OnPreferencesChanged({
|
||||
enabled: enabled
|
||||
getData: function() as boolean
|
||||
|
||||
Reference in new issue
Block a user