Skip to content

Commit

Permalink
Merge pull request #143 from tablelandnetwork/joe/local-filter-log
Browse files Browse the repository at this point in the history
(local) add more extraneous log filters
  • Loading branch information
joewagner authored May 7, 2024
2 parents c1d3b2a + 6274613 commit 8c8d5d1
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 8c8d5d1

Please sign in to comment.