Skip to content

Commit

Permalink
fix: clean error log
Browse files Browse the repository at this point in the history
  • Loading branch information
frost-ostrich committed Dec 4, 2023
1 parent 2bf4784 commit 5ca0dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/automation-v2/src/tlc/batch-liquidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 5ca0dac

Please sign in to comment.