diff --git a/CHANGELOG.md b/CHANGELOG.md index 2682e2ff..b2d30b3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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.48.3] - 2026-07-28 ### Fixed diff --git a/playlet-lib/src/source/services/HttpClient.bs b/playlet-lib/src/source/services/HttpClient.bs index b55b785b..2527dc23 100644 --- a/playlet-lib/src/source/services/HttpClient.bs +++ b/playlet-lib/src/source/services/HttpClient.bs @@ -471,7 +471,15 @@ namespace HttpClient backoffMs = 1000 + Rnd(2000) tryNumber = m._tryCount - triesLeft + 1 LogWarnNoTelemetry("Request failed ID:", m.urlTransfer.GetIdentity(), "ErrorMessage:", response.ErrorMessage(), `\nRetrying: (`, tryNumber, "/", m._tryCount, ") in", backoffMs, "ms") - LogWarnTelemetry(response.ErrorMessage() + `\n` + m.ToCurlCommand()) + LogTelemetryEvent({ + level: "warning" + message: response.ErrorMessage() + attachments: [{ + filename: "request.txt" + content_type: "text/plain" + data: m.ToCurlCommand() + }] + }) if IsFunction(m._retryCallback) try diff --git a/playlet-lib/src/source/utils/Logging.bs b/playlet-lib/src/source/utils/Logging.bs index 447bdf75..937e9e6c 100644 --- a/playlet-lib/src/source/utils/Logging.bs +++ b/playlet-lib/src/source/utils/Logging.bs @@ -33,10 +33,6 @@ 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