From 5ca0dac4e5793d7e10fb14aa7a143dc02a1e79d4 Mon Sep 17 00:00:00 2001 From: frost ostrich Date: Mon, 4 Dec 2023 10:05:45 +1000 Subject: [PATCH] fix: clean error log --- apps/automation-v2/src/tlc/batch-liquidate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/automation-v2/src/tlc/batch-liquidate.ts b/apps/automation-v2/src/tlc/batch-liquidate.ts index c469c9d21b..ce505c1181 100644 --- a/apps/automation-v2/src/tlc/batch-liquidate.ts +++ b/apps/automation-v2/src/tlc/batch-liquidate.ts @@ -16,7 +16,7 @@ import { taskSuccessSilent, } from '@mountainpath9/overlord'; import { subgraphRequest } from '@/subgraph/subgraph-request'; -import { GetUserResponse, SubgraphError } from '@/subgraph/types'; +import { GetUserResponse } from '@/subgraph/types'; import { matchAndDecodeEvent } from '@/common/filters'; import { backOff } from 'exponential-backoff'; import { AxiosResponse } from 'axios'; @@ -198,7 +198,7 @@ const getTlcUsers = async (ctx: TaskContext, url: string, retries: number) => { numOfAttempts: retries, retry: (e, attemptNumber) => { if (e instanceof Error) { - ctx.logger.error(`subgraph retry ${attemptNumber} after rate limit`); + ctx.logger.error(`subgraph retry no ${attemptNumber}`); ctx.logger.error(`${JSON.stringify(e)}`); return true; }