diff --git a/CHANGELOG.md b/CHANGELOG.md index 50afd5db..4b12308f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -- Nothing worth mentioning yet. +### Fixed + +- Various fixes and improvements ## [0.41.15] - 2025-09-19 diff --git a/playlet-lib/src/source/services/HttpClient.bs b/playlet-lib/src/source/services/HttpClient.bs index 58df315b..418aee59 100644 --- a/playlet-lib/src/source/services/HttpClient.bs +++ b/playlet-lib/src/source/services/HttpClient.bs @@ -440,7 +440,8 @@ namespace HttpClient while triesLeft > 0 backoffMs = 1000 + Rnd(2000) tryNumber = m._tryCount - triesLeft + 1 - LogWarn("Request failed ID:", m.urlTransfer.GetIdentity(), "ErrorMessage:", response.ErrorMessage(), `\nRetrying: (`, tryNumber, "/", m._tryCount, ") in", backoffMs, "ms") + LogWarnNoTelemetry("Request failed ID:", m.urlTransfer.GetIdentity(), "ErrorMessage:", response.ErrorMessage(), `\nRetrying: (`, tryNumber, "/", m._tryCount, ") in", backoffMs, "ms") + LogWarnTelemetry(response.ErrorMessage()) if IsFunction(m._retryCallback) try diff --git a/playlet-lib/src/source/utils/Logging.bs b/playlet-lib/src/source/utils/Logging.bs index 937e9e6c..447bdf75 100644 --- a/playlet-lib/src/source/utils/Logging.bs +++ b/playlet-lib/src/source/utils/Logging.bs @@ -33,6 +33,10 @@ function LogTelemetryEvent(event as object) m.global.telemetry.LogEvent = event end function +function LogWarnTelemetry(message as string) + m.global.telemetry.LogWarn = message +end function + function ToString(value as dynamic) as string if getInterface(value, "ifString") <> invalid return value