From 319f2a9dee59aed140f70369f963eca72db53fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20B=C3=BCchse?= Date: Fri, 22 Mar 2024 15:51:14 +0100 Subject: [PATCH] Bugfix: recommendations correspond to warning channel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matthias Büchse --- Tests/iaas/standard-images/images-openstack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/iaas/standard-images/images-openstack.py b/Tests/iaas/standard-images/images-openstack.py index c48e0283f..30d798668 100755 --- a/Tests/iaas/standard-images/images-openstack.py +++ b/Tests/iaas/standard-images/images-openstack.py @@ -120,7 +120,7 @@ def main(argv): matches = [img for img in (by_name.get(image_spec['name']), ) if img is not None] if not matches: status = image_spec.get('status', 'optional') - level = {"mandatory": logging.ERROR, "recommended": logging.INFO}.get(status, logging.DEBUG) + level = {"mandatory": logging.ERROR, "recommended": logging.WARNING}.get(status, logging.DEBUG) logger.log(level, f"Missing {status} image '{image_spec['name']}'") continue for image in matches: @@ -135,7 +135,7 @@ def main(argv): logger.debug("Exception info", exc_info=True) c = counting_handler.bylevel - logger.debug(f"Total critical / error / info: {c[logging.CRITICAL]} / {c[logging.ERROR]} / {c[logging.INFO]}") + logger.debug(f"Total critical / error / warning: {c[logging.CRITICAL]} / {c[logging.ERROR]} / {c[logging.WARNING]}") return min(127, c[logging.CRITICAL] + c[logging.ERROR]) # cap at 127 due to OS restrictions