Skip to content

Commit

Permalink
improve(relayer): Reduce token swap log spam (#2007)
Browse files Browse the repository at this point in the history
This log message was added during the v2 -> v3 transition where it was
interesting to know about deposits with unsupported outputTokens. There
are now other protocols building on top of Across and supporting this,
so it generates quite a bit of log spam. Reduce the loglevel and the
information bundled in the log.
  • Loading branch information
pxrl authored Jan 21, 2025
1 parent f122e3f commit 36db81a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/relayer/Relayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,13 @@ export class Relayer {
}

if (!this.clients.inventoryClient.validateOutputToken(deposit)) {
this.logger[this.config.sendingRelaysEnabled ? "warn" : "debug"]({
this.logger.debug({
at: "Relayer::filterDeposit",
message: "Skipping deposit including in-protocol token swap.",
deposit,
originChainId,
destinationChainId,
outputToken: deposit.outputToken,
transactionHash: deposit.transactionHash,
notificationPath: "across-unprofitable-fills",
});
return false;
Expand Down

0 comments on commit 36db81a

Please sign in to comment.