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
|
//Check plugins errors
|
||||||
const errors = [...promised.filter(({result = null}) => result?.error), ...data.errors]
|
const errors = [...promised.filter(({result = null}) => result?.error), ...data.errors]
|
||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
console.warn(`metrics/compute/${login} > ${errors.length} errors !`)
|
console.debug(`metrics/compute/${login} > ${errors.length} errors !`)
|
||||||
if (die)
|
if (die)
|
||||||
throw new Error("An error occured during rendering, dying")
|
throw new Error("An error occured during rendering, dying")
|
||||||
else
|
else
|
||||||
console.warn(util.inspect(errors, {depth:Infinity, maxStringLength:256}))
|
console.debug(util.inspect(errors, {depth:Infinity, maxStringLength:256}))
|
||||||
}
|
}
|
||||||
|
|
||||||
//JSON output
|
//JSON output
|
||||||
|
|||||||
@@ -476,7 +476,6 @@ export const svg = {
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
console.error(error)
|
|
||||||
console.debug(`metrics/svg/resize > an error occured: ${error}`)
|
console.debug(`metrics/svg/resize > an error occured: ${error}`)
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,7 +116,6 @@
|
|||||||
return this.metrics?.rendered.plugins.followup ?? null
|
return this.metrics?.rendered.plugins.followup ?? null
|
||||||
},
|
},
|
||||||
habits() {
|
habits() {
|
||||||
console.log(this.metrics?.rendered.plugins.habits.commits.hours)
|
|
||||||
return this.metrics?.rendered.plugins.habits.commits.hours ?? null
|
return this.metrics?.rendered.plugins.habits.commits.hours ?? null
|
||||||
},
|
},
|
||||||
isocalendar() {
|
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)
|
Object.assign(data.user.repositories, (await graphql(queries.base["field.repositories"]({login, account, field})))[account].repositories)
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
console.log(error)
|
|
||||||
console.debug(`metrics/compute/${login}/base > failed to retrieve repositories.${field}`)
|
console.debug(`metrics/compute/${login}/base > failed to retrieve repositories.${field}`)
|
||||||
data.user.repositories[field] = NaN
|
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)
|
({project} = (await graphql(queries.projects.repository({user, repository, id, account})))[account].repository)
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
console.error(error)
|
console.debug(error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!project)
|
if (!project)
|
||||||
|
|||||||
Reference in New Issue
Block a user