Small tweak

This commit is contained in:
Brahim Hadriche committed 2025-09-19 13:30:11 -04:00
1 parent c5146017a8
commit 3f252a9b11
3 files changed
+9 -2

No files matched your search

+3 -1
View File
@@ -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
@@ -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
+4
View File
@@ -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