1
0
Fork 0
mirror of https://github.com/ldericher/fftcgtool synced 2025-01-15 15:02:59 +00:00

logging setup

This commit is contained in:
Jörn-Michael Miehe 2021-09-13 03:36:39 +02:00
parent 281438613b
commit 8c1313da93

View file

@ -78,15 +78,15 @@ def main(ctx, **kwargs) -> None:
# set up logging # set up logging
if kwargs["verbose"] == 0: if kwargs["verbose"] == 0:
verbose = logging.WARN log_level = logging.WARN
elif kwargs["verbose"] == 1: elif kwargs["verbose"] == 1:
verbose = logging.INFO log_level = logging.INFO
else: else:
verbose = logging.DEBUG log_level = logging.DEBUG
logging.basicConfig( logging.basicConfig(
level=verbose, level=log_level,
format="%(levelname)s: %(processName)s %(message)s", format="%(levelname)s in %(name)s (#%(process)d): %(message)s",
) )
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)