From 956b0a78ce4d4082ca7811cbb329069276952a30 Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Mon, 11 Sep 2023 20:36:55 -0400 Subject: [PATCH] fix: remove some loggers --- source/app/web/instance.mjs | 2 +- source/plugins/habits/index.mjs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/app/web/instance.mjs b/source/app/web/instance.mjs index 19ff777b..4b13c995 100644 --- a/source/app/web/instance.mjs +++ b/source/app/web/instance.mjs @@ -538,7 +538,7 @@ export default async function({sandbox = false} = {}) { //Control endpoints if (conf.settings.control?.token) { const middleware = (req, res, next) => { - console.log(`metrics/app/control > ${req.url.replace(/[\n\r]/g, "")}`) + console.debug(`metrics/app/control > ${req.url.replace(/[\n\r]/g, "")}`) if (req.headers.authorization === conf.settings.control.token) { next() return diff --git a/source/plugins/habits/index.mjs b/source/plugins/habits/index.mjs index 2c2fea62..3a1a437d 100644 --- a/source/plugins/habits/index.mjs +++ b/source/plugins/habits/index.mjs @@ -128,7 +128,6 @@ export default async function({login, data, rest, imports, q, account}, {enabled const height = 160 if (type === "line") return imports.Graph.line(Object.entries(data).map(([x, y]) => ({x: +x, y})), {low, high, ticks, labels, width, height}) - console.log(data) if (type === "pie") return imports.Graph.pie(data, {colors, width, height}) return ""