From 91be37fd8a5b390603ea4b58eff06bfa680c66bb Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Mon, 6 Nov 2023 17:18:57 -0500 Subject: [PATCH] Log error message --- playlet-lib/src/source/services/HttpClient.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playlet-lib/src/source/services/HttpClient.bs b/playlet-lib/src/source/services/HttpClient.bs index 1721bd88..9ecf6315 100644 --- a/playlet-lib/src/source/services/HttpClient.bs +++ b/playlet-lib/src/source/services/HttpClient.bs @@ -278,7 +278,7 @@ namespace HttpClient while tryCount > 0 backoffMs = 1000 + Rnd(2000) - LogInfo("Request failed with status code:", response.StatusCode(), "ID:", m.urlTransfer.GetIdentity(), `\nRetrying:`, m._tryCount - tryCount, "in", backoffMs, "ms") + LogInfo("Request failed ID:", m.urlTransfer.GetIdentity(), "ErrorMessage:", response.ErrorMessage(), `\nRetrying:`, m._tryCount - tryCount, "in", backoffMs, "ms") m.urlTransfer = invalid m._cache = invalid