From: Daan De Meyer Date: Thu, 25 Jul 2024 08:31:38 +0000 (+0200) Subject: Remove noisy debug logging X-Git-Tag: v24~6^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a868ddbe992270fdf1b9fe3425469a605bfa93a6;p=thirdparty%2Fmkosi.git Remove noisy debug logging There could potentially be a huge amount of modules and firmware which makes these log messages very noisy. Let's drop them to make debug logs less annoying to parse. --- diff --git a/mkosi/kmod.py b/mkosi/kmod.py index 1183c5438..cc8562589 100644 --- a/mkosi/kmod.py +++ b/mkosi/kmod.py @@ -29,7 +29,6 @@ def filter_kernel_modules(root: Path, kver: str, *, include: Iterable[str], excl for m in modules: rel = os.fspath(Path(*m.parts[1:])) if regex.search(rel): - logging.debug(f"Including module {rel}") keep.add(rel) if exclude: @@ -38,7 +37,6 @@ def filter_kernel_modules(root: Path, kver: str, *, include: Iterable[str], excl for m in modules: rel = os.fspath(Path(*m.parts[1:])) if rel not in keep and regex.search(rel): - logging.debug(f"Excluding module {rel}") remove.add(m) modules -= remove @@ -221,7 +219,6 @@ def process_kernel_modules( p = root / m if p.is_file() or p.is_symlink(): - logging.debug(f"Removing module {m}") p.unlink() else: p.rmdir() @@ -235,7 +232,6 @@ def process_kernel_modules( p = root / fw if p.is_file() or p.is_symlink(): - logging.debug(f"Removing firmware {fw}") p.unlink() else: p.rmdir()