Skip to content

Commit

Permalink
fix: Log public vm errors as warn in prover-agent (#8247)
Browse files Browse the repository at this point in the history
And not the other way around. I need to relearn how booleans work.
  • Loading branch information
spalladino authored Aug 28, 2024
1 parent 7b3006a commit 9f4ea9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yarn-project/prover-client/src/prover-agent/prover-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ export class ProverAgent {
const type = ProvingRequestType[job.request.type];
if (this.isRunning()) {
if (job.request.type === ProvingRequestType.PUBLIC_VM && !process.env.AVM_PROVING_STRICT) {
this.log.error(`Error processing proving job id=${job.id} type=${type}: ${err}`, err);
this.log.warn(`Expected error processing VM proving job id=${job.id} type=${type}: ${err}`);
} else {
this.log.warn(`Ignoring error processing proving job id=${job.id} type=${type}: ${err}`);
this.log.error(`Error processing proving job id=${job.id} type=${type}: ${err}`, err);
}
await jobSource.rejectProvingJob(job.id, new ProvingError((err as any)?.message ?? String(err)));
} else {
Expand Down

0 comments on commit 9f4ea9f

Please sign in to comment.