From ef87a3608fe3d483f5c8d09a1b5cea1bab016c27 Mon Sep 17 00:00:00 2001 From: Filip Dunder Date: Sun, 21 Apr 2024 15:36:30 +0200 Subject: [PATCH] fix: change log levels --- bot.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot.ts b/bot.ts index 0202af6..449bd18 100644 --- a/bot.ts +++ b/bot.ts @@ -100,7 +100,7 @@ export class Bot { } public async buy(accountId: PublicKey, poolState: LiquidityStateV4) { - logger.trace({ mint: poolState.baseMint }, `Processing buy...`); + logger.trace({ mint: poolState.baseMint }, `Processing new pool...`); if (this.config.useSnipeList && !this.snipeListCache?.isInList(poolState.baseMint.toString())) { logger.debug({ mint: poolState.baseMint.toString() }, `Skipping buy because token is not in a snipe list`); @@ -172,7 +172,7 @@ export class Bot { break; } - logger.debug( + logger.info( { mint: poolState.baseMint.toString(), signature: result.signature, @@ -199,7 +199,7 @@ export class Bot { } try { - logger.trace({ mint: rawAccount.mint }, `Processing sell...`); + logger.trace({ mint: rawAccount.mint }, `Processing new token...`); const poolData = await this.poolStorage.get(rawAccount.mint.toString()); @@ -271,7 +271,7 @@ export class Bot { } } } catch (error) { - logger.debug({ mint: rawAccount.mint.toString(), error }, `Failed to sell token`); + logger.error({ mint: rawAccount.mint.toString(), error }, `Failed to sell token`); } finally { if (this.config.oneTokenAtATime) { this.sellExecutionCount--;