4
0
mirror of git://holbrook.no/eth-monitor.git synced 2024-11-19 03:06:47 +01:00
eth-monitor/eth_monitor/cli/log.py
2022-11-12 09:20:46 +00:00

22 lines
518 B
Python

# 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