You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -152,21 +163,24 @@ export async function makeFetchCall(
152
163
}
153
164
154
165
if(isRequestOk(response)){
155
-
logger?.info(
166
+
logger?.debug?.(
156
167
`${config.method}${endpoint} (x-request-id=${requestId}) succeeded with status ${response.status}${getDuration()}.`,
157
168
);
158
169
159
170
returnresponse;
160
171
}
161
172
162
-
logger?.error(
163
-
`${config.method}${endpoint} (x-request-id=${requestId}) failed with status ${response.status}${getDuration()}: ${(awaitresponse.text())||'<empty response body>'}`,
164
-
);
165
-
166
-
if(retries>0&&attempt>retries){
173
+
if(isFinalAttempt){
174
+
logger?.error(
175
+
`${config.method}${endpoint} (x-request-id=${requestId}) failed with status ${response.status}${getDuration()}: ${(awaitresponse.text())||'<empty response body>'}`,
176
+
);
167
177
logger?.error(
168
178
`${config.method}${endpoint} (x-request-id=${requestId}) retry limit exceeded after ${attempt} attempts.`,
169
179
);
180
+
}else{
181
+
logger?.debug?.(
182
+
`${config.method}${endpoint} (x-request-id=${requestId}) failed with status ${response.status}${getDuration()}: ${(awaitresponse.text())||'<empty response body>'}`,
0 commit comments