Skip to content

Commit

Permalink
add time to log
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 4, 2023
1 parent 09a2991 commit ade9f29
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 @@ -967,7 +967,7 @@ export async function insertMatchPromise(match, options) {
// Match ID
// When it finished (start_time + duration)
const name = process.env.name || process.env.ROLE || process.argv[1];
const message = `[${name}] inserted [${options.type}] for match ${
const message = `[${new Date().toISOString()}] [${name}] inserted [${options.type}] for match ${
match.match_id
} finished ${moment.unix(match.start_time + match.duration).fromNow()}`;
redis.publish(options.type, message);
Expand Down

0 comments on commit ade9f29

Please sign in to comment.