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:
parent
b8fe525cbe
commit
b65d63daa1
21
eth_monitor/cli/log.py
Normal file
21
eth_monitor/cli/log.py
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user