eth-monitor

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

log.py (518B)


      1 # standard imports
      2 import logging
      3 
      4 # external imports
      5 from chainlib.cli.log import process_log as base_process_log
      6 
      7 logging.STATETRACE = 5
      8 
      9 
     10 def process_log(args, logger):
     11     if args.vvv:
     12         logger.setLevel(logging.STATETRACE)
     13     else:
     14         logger = base_process_log(args, logger)
     15 
     16     logging.getLogger('chainlib.connection').setLevel(logging.WARNING)
     17     logging.getLogger('chainlib.eth.tx').setLevel(logging.WARNING)
     18     logging.getLogger('chainlib.eth.src').setLevel(logging.WARNING)
     19 
     20     return logger
     21