2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 18:17:09 +00:00

Merge Move annoying "skipping disabled profile" log to debug.

Those messages appear in various context and do not provide any useful feedback to the user, diverging from UNIX philosophy of staying quiet when there's nothing of importance to say.

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1738
Approved-by: John Johansen <john@jjmx.net>
Merged-by: John Johansen <john@jjmx.net>
This commit is contained in:
John Johansen 2025-07-24 10:44:49 +00:00
commit ab46c224cb

View File

@ -1630,7 +1630,7 @@ def read_profiles(ui_msg=False, skip_profiles=(), skip_disabled=True, skip_perm_
if is_skippable_file(file): if is_skippable_file(file):
continue continue
elif skip_disabled and os.path.exists(f'{profile_dir}/disable/{file}'): elif skip_disabled and os.path.exists(f'{profile_dir}/disable/{file}'):
aaui.UI_Info("skipping disabled profile %s" % file) debug_logger.debug("skipping disabled profile %s", file)
continue continue
elif file in skip_profiles: elif file in skip_profiles:
aaui.UI_Info("skipping profile %s" % full_file) aaui.UI_Info("skipping profile %s" % full_file)