Skip to content

Commit

Permalink
(local) add more extraneous log filters
Browse files Browse the repository at this point in the history
  • Loading branch information
joewagner committed May 7, 2024
1 parent c1d3b2a commit 6274613
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/local/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,18 +229,20 @@ export const getConfigFile = async function (): Promise<
const isExtraneousLog = function (log: string): boolean {
log = log.toLowerCase();

if (log.match(/dropping new height/i) != null) return true;
if (log.match(/eth_blockNumber/i) != null) return true;
if (log.match(/eth_feeHistory/i) != null) return true;
if (log.match(/eth_getLogs/i) != null) return true;
if (log.match(/Mined empty block/i) != null) return true;
if (log.match(/eth_getBlockByNumber/i) != null) return true;
if (log.match(/eth_getBalance/i) != null) return true;
if (log.match(/processing height/i) != null) return true;
if (log.match(/new last processed height/i) != null) return true;
if (log.match(/eth_unsubscribe/i) != null) return true;
if (log.match(/eth_subscribe/i) != null) return true;
if (log.match(/eth_unsubscribe/i) != null) return true;
if (log.match(/Mined empty block/i) != null) return true;
if (log.match(/new blocks subscription is quiet, rebuilding/i) != null)
return true;
if (log.match(/new last processed height/i) != null) return true;
if (log.match(/processing height/i) != null) return true;
if (log.match(/received new chain header/i) != null) return true;
if (log.match(/dropping new height/i) != null) return true;

return false;
};
Expand Down

0 comments on commit 6274613

Please sign in to comment.