From afb261008941bab8d06a578a489314b1b7318db1 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Wed, 28 Aug 2024 15:50:09 -0300 Subject: [PATCH] fix: Log public vm errors as warn in prover-agent (#8247) And not the other way around. I need to relearn how booleans work. --- yarn-project/prover-client/src/prover-agent/prover-agent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yarn-project/prover-client/src/prover-agent/prover-agent.ts b/yarn-project/prover-client/src/prover-agent/prover-agent.ts index 405c9999d4b..25221920f81 100644 --- a/yarn-project/prover-client/src/prover-agent/prover-agent.ts +++ b/yarn-project/prover-client/src/prover-agent/prover-agent.ts @@ -139,9 +139,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 {