From 7ca6230df2dc22e43228c3d8e8cfe9851b0e0f3d Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Wed, 30 Jan 2013 13:04:29 -0600 Subject: YUM: Set logger to info for pkg verify failures If the loglevel is set to debug, then a user running the client without -d will not be informed why the client is asking them to install Package entries which may already be installed (but are not verifying). Signed-off-by: Sol Jerome --- src/lib/Bcfg2/Client/Tools/YUM.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/lib/Bcfg2/Client/Tools/YUM.py b/src/lib/Bcfg2/Client/Tools/YUM.py index c8414b4b2..1fe275c2c 100644 --- a/src/lib/Bcfg2/Client/Tools/YUM.py +++ b/src/lib/Bcfg2/Client/Tools/YUM.py @@ -603,17 +603,18 @@ class YUM(Bcfg2.Client.Tools.PkgTool): if stat['verify'] != {}: stat['verify_fail'] = True package_fail = True - self.logger.debug("It is suggested that you either manage " - "these files, revert the changes, or ignore " - "false failures:") - self.logger.debug(" Verify Problems:") + self.logger.info("It is suggested that you either manage " + "these files, revert the changes, or ignore " + "false failures:") + self.logger.info(" Verify Problems: %s" % + stat['pkg'].get('name')) for fname, probs in list(stat['verify'].items()): if len(probs) > 1: - self.logger.debug(" %s" % fname) + self.logger.info(" %s" % fname) for prob in probs: - self.logger.debug(" %s" % prob) + self.logger.info(" %s" % prob[1]) else: - self.logger.debug(" %s: %s" % (fname, probs[0])) + self.logger.info(" %s: %s" % (fname, probs[0])) if len(all_pkg_objs) > 0: # Is this an install only package? We just look at the first one -- cgit v1.2.3-1-g7c22