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() {
|
||||
|
||||
@@ -56,7 +56,6 @@ export default async function({login, graphql, rest, data, q, queries, imports},
|
||||
Object.assign(data.user.repositories, (await graphql(queries.base["field.repositories"]({login, account, field})))[account].repositories)
|
||||
}
|
||||
catch (error) {
|
||||
console.log(error)
|
||||
console.debug(`metrics/compute/${login}/base > failed to retrieve repositories.${field}`)
|
||||
data.user.repositories[field] = NaN
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ export default async function({login, data, imports, graphql, q, queries, accoun
|
||||
({project} = (await graphql(queries.projects.repository({user, repository, id, account})))[account].repository)
|
||||
}
|
||||
catch (error) {
|
||||
console.error(error)
|
||||
console.debug(error)
|
||||
}
|
||||
}
|
||||
if (!project)
|
||||
|
||||
Reference in New Issue
Block a user