4
0
mirror of git://holbrook.no/eth-monitor.git synced 2024-11-23 12:26:45 +01:00
eth-monitor/eth_monitor/cli/log.py

22 lines
518 B
Python
Raw Permalink Normal View History

2022-11-12 10:20:46 +01:00
# 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