From 2e7129a7762b3fc22a021b67d1e58b105cc85ce3 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Mon, 31 May 2021 20:29:12 +0200 Subject: [PATCH] improved logging --- utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index 3bb53ce..cc4b441 100644 --- a/utils.py +++ b/utils.py @@ -32,13 +32,13 @@ def parse_pkgbuild(pkgbuild_file: str) -> dict: os.chdir(sys.path[0]) if res.returncode: - logging.warning("[PKGBUILD] makekg failed: %s", res.stdout.decode(errors="ignore")) + logging.warning("[PKGBUILD/%s] makepkg failed: %s", pkgbuild_path.name, res.stdout.decode(errors="ignore")) return {} (parsed, errors) = parse_srcinfo(res.stdout.decode(errors="ignore")) if errors: - logging.warning("[PKGBUILD] Failed to parse %s: %s", pkgbuild_path.name, errors) + logging.warning("[PKGBUILD/%s] Failed to parse: %s", pkgbuild_path.name, errors) return {} return parsed