Skip to content

Commit 841069e

Browse files
committed
fix: remove useless logger
1 parent 55a1193 commit 841069e

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

source/app/metrics/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ export default async function metrics({login, q}, {graphql, rest, plugins, conf,
6666
//Check plugins errors
6767
const errors = [...promised.filter(({result = null}) => result?.error), ...data.errors]
6868
if (errors.length) {
69-
console.warn(`metrics/compute/${login} > ${errors.length} errors !`)
69+
console.debug(`metrics/compute/${login} > ${errors.length} errors !`)
7070
if (die)
7171
throw new Error("An error occured during rendering, dying")
7272
else
73-
console.warn(util.inspect(errors, {depth:Infinity, maxStringLength:256}))
73+
console.debug(util.inspect(errors, {depth:Infinity, maxStringLength:256}))
7474
}
7575

7676
//JSON output

source/app/metrics/utils.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,6 @@ export const svg = {
476476
))
477477
}
478478
catch (error) {
479-
console.error(error)
480479
console.debug(`metrics/svg/resize > an error occured: ${error}`)
481480
throw error
482481
}

source/app/web/statics/about/script.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
return this.metrics?.rendered.plugins.followup ?? null
117117
},
118118
habits() {
119-
console.log(this.metrics?.rendered.plugins.habits.commits.hours)
120119
return this.metrics?.rendered.plugins.habits.commits.hours ?? null
121120
},
122121
isocalendar() {

source/plugins/base/index.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export default async function({login, graphql, rest, data, q, queries, imports},
5656
Object.assign(data.user.repositories, (await graphql(queries.base["field.repositories"]({login, account, field})))[account].repositories)
5757
}
5858
catch (error) {
59-
console.log(error)
6059
console.debug(`metrics/compute/${login}/base > failed to retrieve repositories.${field}`)
6160
data.user.repositories[field] = NaN
6261
}

source/plugins/projects/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default async function({login, data, imports, graphql, q, queries, accoun
2828
({project} = (await graphql(queries.projects.repository({user, repository, id, account})))[account].repository)
2929
}
3030
catch (error) {
31-
console.error(error)
31+
console.debug(error)
3232
}
3333
}
3434
if (!project)

0 commit comments

Comments
 (0)