Skip to content

Commit 8c8d5d1

Browse files
authored
Merge pull request #143 from tablelandnetwork/joe/local-filter-log
(local) add more extraneous log filters
2 parents c1d3b2a + 6274613 commit 8c8d5d1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/local/src/util.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,18 +229,20 @@ export const getConfigFile = async function (): Promise<
229229
const isExtraneousLog = function (log: string): boolean {
230230
log = log.toLowerCase();
231231

232+
if (log.match(/dropping new height/i) != null) return true;
233+
if (log.match(/eth_blockNumber/i) != null) return true;
234+
if (log.match(/eth_feeHistory/i) != null) return true;
232235
if (log.match(/eth_getLogs/i) != null) return true;
233-
if (log.match(/Mined empty block/i) != null) return true;
234236
if (log.match(/eth_getBlockByNumber/i) != null) return true;
235237
if (log.match(/eth_getBalance/i) != null) return true;
236-
if (log.match(/processing height/i) != null) return true;
237-
if (log.match(/new last processed height/i) != null) return true;
238-
if (log.match(/eth_unsubscribe/i) != null) return true;
239238
if (log.match(/eth_subscribe/i) != null) return true;
239+
if (log.match(/eth_unsubscribe/i) != null) return true;
240+
if (log.match(/Mined empty block/i) != null) return true;
240241
if (log.match(/new blocks subscription is quiet, rebuilding/i) != null)
241242
return true;
243+
if (log.match(/new last processed height/i) != null) return true;
244+
if (log.match(/processing height/i) != null) return true;
242245
if (log.match(/received new chain header/i) != null) return true;
243-
if (log.match(/dropping new height/i) != null) return true;
244246

245247
return false;
246248
};

0 commit comments

Comments
 (0)