summaryrefslogtreecommitdiff
path: root/src/chart
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-03 18:16:57 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-03 18:16:57 +0900
commit0868c3517f8c2dda5527c8863ce5144fffde0eb5 (patch)
tree7e60d3bffc3fec88ca67943147c66c6009b61246 /src/chart
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadmisskey-0868c3517f8c2dda5527c8863ce5144fffde0eb5.tar.gz
misskey-0868c3517f8c2dda5527c8863ce5144fffde0eb5.tar.bz2
misskey-0868c3517f8c2dda5527c8863ce5144fffde0eb5.zip
Use internal logger instead of debug/console for logging
Resolve #4104 Resolve #1966 Resolve #1937
Diffstat (limited to 'src/chart')
-rw-r--r--src/chart/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chart/index.ts b/src/chart/index.ts
index edf773d9ca..5c1956a440 100644
--- a/src/chart/index.ts
+++ b/src/chart/index.ts
@@ -181,7 +181,7 @@ export default abstract class Chart<T> {
if (e.code === 11000) {
log = await this.getLatestLog(span, group);
} else {
- console.error(e);
+ logger.error(e);
throw e;
}
}