Skip to content

Commit

Permalink
chore: logs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Dec 16, 2024
1 parent 0c54bf4 commit 818bd62
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,13 @@ export class ProvingBroker implements ProvingJobProducer, ProvingJobConsumer, Tr
if (this.jobsCache.has(job.id)) {
const existing = this.jobsCache.get(job.id);
assert.deepStrictEqual(job, existing, 'Duplicate proving job ID');
this.logger.debug(`Duplicate proving job id=${job.id} epochNumber=${job.epochNumber}. Ignoring`, {
provingJobId: job.id,
});
return;
}

this.logger.verbose(`New proving job id=${job.id} epochNumber=${job.epochNumber}`, { provingJobId: job.id });
this.logger.info(`New proving job id=${job.id} epochNumber=${job.epochNumber}`, { provingJobId: job.id });
try {
// do this first so it acts as a "lock". If this job is enqueued again while we're saving it the if at the top will catch it.
this.jobsCache.set(job.id, job);
Expand Down

0 comments on commit 818bd62

Please sign in to comment.