4
0
mirror of git://holbrook.no/eth-monitor.git synced 2024-11-24 12:36:47 +01:00

Add missing log module in cli lib

This commit is contained in:
lash 2022-11-12 09:20:46 +00:00
parent b8fe525cbe
commit b65d63daa1
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

21
eth_monitor/cli/log.py Normal file
View File

@ -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