mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2025-11-10 04:22:05 +10:00
fix: change log levels
This commit is contained in:
8
bot.ts
8
bot.ts
@ -100,7 +100,7 @@ export class Bot {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async buy(accountId: PublicKey, poolState: LiquidityStateV4) {
|
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())) {
|
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`);
|
logger.debug({ mint: poolState.baseMint.toString() }, `Skipping buy because token is not in a snipe list`);
|
||||||
@ -172,7 +172,7 @@ export class Bot {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.debug(
|
logger.info(
|
||||||
{
|
{
|
||||||
mint: poolState.baseMint.toString(),
|
mint: poolState.baseMint.toString(),
|
||||||
signature: result.signature,
|
signature: result.signature,
|
||||||
@ -199,7 +199,7 @@ export class Bot {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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());
|
const poolData = await this.poolStorage.get(rawAccount.mint.toString());
|
||||||
|
|
||||||
@ -271,7 +271,7 @@ export class Bot {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} 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 {
|
} finally {
|
||||||
if (this.config.oneTokenAtATime) {
|
if (this.config.oneTokenAtATime) {
|
||||||
this.sellExecutionCount--;
|
this.sellExecutionCount--;
|
||||||
|
|||||||
Reference in New Issue
Block a user