Skip to content

Commit 518e00f

Browse files
committed
edit logs
1 parent 58674a4 commit 518e00f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helper-functions.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ export const HELPER = {
4646
try {
4747
const response = await fetchWithMethodFallback(env.NPM_HEALTH_URL, { signal: controller.signal });
4848
if (this.isCloudflareError(response) && response.status >= 520 && response.status <= 529) {
49-
console.log("COUCOU NPM is down ERROR NPM_HEALTH_URL: " + env.NPM_HEALTH_URL);
49+
console.log("COUCOU NPM is down ERROR1 NPM_HEALTH_URL: " + env.NPM_HEALTH_URL);
50+
console.log("COUCOU NPM is down ERROR2 NPM_HEALTH_URL: ");
5051
return false;
5152
}
5253
return response.status > 0 && response.status < 500;
5354
} catch {
5455
console.log("COUCOU NPM is down CATCH NPM_HEALTH_URL: " + env.NPM_HEALTH_URL);
56+
console.log("COUCOU NPM is down CATCH2 NPM_HEALTH_URL: ");
5557
return false;
5658
} finally {
5759
clearTimeout(id);

0 commit comments

Comments
 (0)