addtl consoling

master
j 2024-03-31 00:23:00 -04:00
parent fbdd22909a
commit 1e07f50fc4
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ export class CommentProcessor {
const exists = await RedisCommentService.retrieveComment(comment.id.toString()); const exists = await RedisCommentService.retrieveComment(comment.id.toString());
if (exists) { if (exists) {
console.log(`Comment ${comment.id} exists`) console.log(`${new Date()} Comment ${comment.id} exists`)
stopFetching = true; stopFetching = true;
break; // Stop processing this batch of comments break; // Stop processing this batch of comments
} }
@ -41,7 +41,7 @@ export class CommentProcessor {
// Optionally publish the comment to a Redis channel for subscribers // Optionally publish the comment to a Redis channel for subscribers
await RedisCommentService.publishComment(comment); await RedisCommentService.publishComment(comment);
console.log(`Published Comment ${comment.id}`) console.log(`${new Date()} Published Comment ${comment.id}`)
// prevent accidental recognition of a previous comment // prevent accidental recognition of a previous comment
comments.push(comment); comments.push(comment);
} }