eth-monitor

Monitor and cache ethereum transactions with match filters
git clone git://git.defalsify.org/eth-monitor.git
Log | Files | Refs | README | LICENSE

commit b65d63daa1ccb8fdb3059bb945c670d4d5228e18
parent b8fe525cbe269222f81e301f273c9e71e12e540a
Author: lash <dev@holbrook.no>
Date:   Sat, 12 Nov 2022 09:20:46 +0000

Add missing log module in cli lib

Diffstat:
Aeth_monitor/cli/log.py | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/eth_monitor/cli/log.py b/eth_monitor/cli/log.py @@ -0,0 +1,21 @@ +# standard imports +import logging + +# external imports +from chainlib.cli.log import process_log as base_process_log + +logging.STATETRACE = 5 + + +def process_log(args, logger): + if args.vvv: + logger.setLevel(logging.STATETRACE) + else: + logger = base_process_log(args, logger) + + logging.getLogger('chainlib.connection').setLevel(logging.WARNING) + logging.getLogger('chainlib.eth.tx').setLevel(logging.WARNING) + logging.getLogger('chainlib.eth.src').setLevel(logging.WARNING) + + return logger +