audit_report: Exclude rewrite logs from verbose display.

This commit is contained in:
Brett Smith 2020-08-31 14:14:19 -04:00
parent 7281cf0f01
commit 8c81eceb2c

View file

@ -151,7 +151,9 @@ def main(arglist: Optional[Sequence[str]]=None,
cliutil.set_loglevel(logger, args.loglevel)
if args.verbose:
logger.setLevel(logging.DEBUG)
logging.getLogger('conservancy_beancount.reports').setLevel(logging.DEBUG)
reports_logger = logging.getLogger('conservancy_beancount.reports')
reports_logger.setLevel(logging.DEBUG)
reports_logger.getChild('rewrite').setLevel(args.loglevel)
fy = config.fiscal_year_begin()
today = datetime.date.today()