From 237c66f26d7ef92e703bd29084013e987103d303 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sun, 3 Dec 2023 22:35:41 +0000 Subject: [PATCH] use role for logging --- store/queries.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/queries.mjs b/store/queries.mjs index 02d84b12b..e0e16572e 100644 --- a/store/queries.mjs +++ b/store/queries.mjs @@ -1277,7 +1277,7 @@ function insertMatch(match, options, cb) { // type of data (parsed gcdata api) // Match ID // When it finished (start_time + duration) - const name = process.env.name || process.argv[1]; + const name = process.env.name || process.env.ROLE || process.argv[1]; const message = `[${name}] inserted [${options.type}] for match ${match.match_id} finished ${moment.unix(match.start_time + match.duration).fromNow()}`; redis.publish(options.type, message); if (options.type === 'parsed') {