fix: remove useless logger

This commit is contained in:
lowlighter
2022-01-27 21:05:39 -05:00
parent 55a11930af
commit 841069ecd3
5 changed files with 3 additions and 6 deletions

View File

@@ -66,11 +66,11 @@ export default async function metrics({login, q}, {graphql, rest, plugins, conf,
//Check plugins errors
const errors = [...promised.filter(({result = null}) => result?.error), ...data.errors]
if (errors.length) {
console.warn(`metrics/compute/${login} > ${errors.length} errors !`)
console.debug(`metrics/compute/${login} > ${errors.length} errors !`)
if (die)
throw new Error("An error occured during rendering, dying")
else
console.warn(util.inspect(errors, {depth:Infinity, maxStringLength:256}))
console.debug(util.inspect(errors, {depth:Infinity, maxStringLength:256}))
}
//JSON output

View File

@@ -476,7 +476,6 @@ export const svg = {
))
}
catch (error) {
console.error(error)
console.debug(`metrics/svg/resize > an error occured: ${error}`)
throw error
}