Skip to content

Commit

Permalink
use role for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 3, 2023
1 parent 3b3426f commit 237c66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/queries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 237c66f

Please sign in to comment.