From 1e53adb5299bb6233a4d592c86d7f00a5e3cb94d Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Tue, 5 Jul 2022 04:46:01 +0200 Subject: [PATCH] docs(debug): Warn user when a section doesn't have all mandatory options set --- update-firewall-source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update-firewall-source.py b/update-firewall-source.py index f03d0fd..4af11d4 100644 --- a/update-firewall-source.py +++ b/update-firewall-source.py @@ -163,8 +163,8 @@ def validate_config_sections( for this_section in config_obj.sections(): log.debug(print_section_header(this_section)) if not set(CONST.CFG_MANDATORY).issubset(config_obj.options(this_section, no_defaults=True)): - log.debug(f"Config section '[{this_section}]' does not have all mandatory options " - f"{CONST.CFG_MANDATORY} set, skipping section ...") + log.warning(f"Config section '[{this_section}]' does not have all mandatory options " + f"{CONST.CFG_MANDATORY} set, skipping section ...") config_obj.remove_section(this_section) else: for key in config_obj.options(this_section, no_defaults=True):