From c62a16ae64931cc806d7faed1770ccc7bd7613ba Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 10 Jan 2020 15:55:40 +0900 Subject: [PATCH] Add some log for debugging --- src/services/chart/core.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/services/chart/core.ts b/src/services/chart/core.ts index df4272c2d..e09642d35 100644 --- a/src/services/chart/core.ts +++ b/src/services/chart/core.ts @@ -291,12 +291,15 @@ export default abstract class Chart> { date: Chart.dateToTimestamp(current), ...Chart.convertObjectToFlattenColumns(data) }); + + logger.info(`${this.name}: New commit created`); } catch (e) { // duplicate key error // 並列動作している他のチャートエンジンプロセスと処理が重なる場合がある // その場合は再度最も新しいログを持ってくる if (isDuplicateKeyValueError(e)) { log = await this.getLatestLog(span, group) as Log; + logger.info(`${this.name}: Commit duplicated`); } else { logger.error(e); throw e;