From 56a0b72d17c59d83aeec68b4aa4f88014de75243 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Wed, 28 Aug 2024 11:53:10 -0300 Subject: [PATCH] fix: Log public vm errors as warn in prover-agent 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 2dd1c5b4727..777a42293af 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 {