Skip to content

Commit 1ba99d3

Browse files
committed
add logs
1 parent 518e00f commit 1ba99d3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

helper-functions.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,15 @@ export const HELPER = {
4242
* @returns {Promise<boolean>} true if NPM is accessible
4343
*/
4444
async isNpmUp({ timeoutMs = 10000 } = {}, env) {
45+
console.log("COUCOU");
4546
const [controller, id] = createTimeoutController(timeoutMs);
4647
try {
4748
const response = await fetchWithMethodFallback(env.NPM_HEALTH_URL, { signal: controller.signal });
4849
if (this.isCloudflareError(response) && response.status >= 520 && response.status <= 529) {
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: ");
5150
return false;
5251
}
5352
return response.status > 0 && response.status < 500;
5453
} catch {
55-
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: ");
5754
return false;
5855
} finally {
5956
clearTimeout(id);

0 commit comments

Comments
 (0)