From 0868c3517f8c2dda5527c8863ce5144fffde0eb5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 3 Feb 2019 18:16:57 +0900 Subject: Use internal logger instead of debug/console for logging Resolve #4104 Resolve #1966 Resolve #1937 --- src/chart/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/chart') 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 { if (e.code === 11000) { log = await this.getLatestLog(span, group); } else { - console.error(e); + logger.error(e); throw e; } } -- cgit v1.3.1-freya