From 8c1313da939899a7c647e4395ba5717ce2db5875 Mon Sep 17 00:00:00 2001 From: LDericher <40151420+ldericher@users.noreply.github.com> Date: Mon, 13 Sep 2021 03:36:39 +0200 Subject: [PATCH] logging setup --- fftcgtool/scripts/fftcgtool.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fftcgtool/scripts/fftcgtool.py b/fftcgtool/scripts/fftcgtool.py index 461cc59..e94ec8d 100755 --- a/fftcgtool/scripts/fftcgtool.py +++ b/fftcgtool/scripts/fftcgtool.py @@ -78,15 +78,15 @@ def main(ctx, **kwargs) -> None: # set up logging if kwargs["verbose"] == 0: - verbose = logging.WARN + log_level = logging.WARN elif kwargs["verbose"] == 1: - verbose = logging.INFO + log_level = logging.INFO else: - verbose = logging.DEBUG + log_level = logging.DEBUG logging.basicConfig( - level=verbose, - format="%(levelname)s: %(processName)s %(message)s", + level=log_level, + format="%(levelname)s in %(name)s (#%(process)d): %(message)s", ) logger = logging.getLogger(__name__)