fix: remove useless logger
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -476,7 +476,6 @@ export const svg = {
|
||||
))
|
||||
}
|
||||
catch (error) {
|
||||
console.error(error)
|
||||
console.debug(`metrics/svg/resize > an error occured: ${error}`)
|
||||
throw error
|
||||
}
|
||||
|
||||
@@ -116,7 +116,6 @@
|
||||
return this.metrics?.rendered.plugins.followup ?? null
|
||||
},
|
||||
habits() {
|
||||
console.log(this.metrics?.rendered.plugins.habits.commits.hours)
|
||||
return this.metrics?.rendered.plugins.habits.commits.hours ?? null
|
||||
},
|
||||
isocalendar() {
|
||||
|
||||
Reference in New Issue
Block a user