From 4ff4ef1f31de31c449cbb5c6438cc6a7fec78039 Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Tue, 4 May 2021 00:19:24 +0200 Subject: [PATCH] Switch console.log to console.debu --- source/plugins/achievements/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/plugins/achievements/index.mjs b/source/plugins/achievements/index.mjs index ee0439f7..ff844072 100644 --- a/source/plugins/achievements/index.mjs +++ b/source/plugins/achievements/index.mjs @@ -81,7 +81,7 @@ async function total({imports}) { const page = await browser.newPage() await page.goto("https://github.com/search") const result = await page.evaluate(() => [...document.querySelectorAll("h2")].filter(node => /Search more/.test(node.innerText)).shift()?.innerText.trim().match(/(?\d+)M\s+(?repositories|users|issues)$/)?.groups) ?? null - console.log(`metrics/compute/plugins > achievements > setup found ${result?.type ?? "(?)"}`) + console.debug(`metrics/compute/plugins > achievements > setup found ${result?.type ?? "(?)"}`) if ((result?.type) && (!total[result.type])) { const {count, type} = result total[type] = Number(count) * 10e5