From 4a585e8920364fd7961316334216061c926426b6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 18 Feb 2020 03:03:34 +0900 Subject: [PATCH] Improve chart logging --- src/services/chart/core.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/chart/core.ts b/src/services/chart/core.ts index a8e00f7969..088c524780 100644 --- a/src/services/chart/core.ts +++ b/src/services/chart/core.ts @@ -280,7 +280,7 @@ export default abstract class Chart> { // 初期ログデータを作成 data = this.getNewLog(null); - logger.info(`${this.name}: Initial commit created`); + logger.info(`${this.name + (group ? `:${group}` : '')} (${span}): Initial commit created`); } try { @@ -292,14 +292,14 @@ export default abstract class Chart> { ...Chart.convertObjectToFlattenColumns(data) }); - logger.info(`${this.name}: New commit created`); + logger.info(`${this.name + (group ? `:${group}` : '')} (${span}): 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`); + logger.info(`${this.name + (group ? `:${group}` : '')} (${span}): Commit duplicated`); } else { logger.error(e); throw e;