Reduce logging noise produced by arnied_wrapper
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 13 Jul 2023 10:24:30 +0000 (12:24 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 13 Jul 2023 10:24:30 +0000 (12:24 +0200)
At least the log messages that appear repeatedly should be reduced to
"debug" level.

src/arnied_wrapper.py

index 3830843..e2176e5 100644 (file)
@@ -89,8 +89,8 @@ def verify_running(process='arnied', timeout=60, vm=None):
         vm.verify_alive()
         platform_str = " on %s" % vm.name
     for i in range(timeout):
-        log.info("Checking whether %s is running%s (%i\%i)",
-                 process, platform_str, i, timeout)
+        log.debug("Checking whether %s is running%s (%i\%i)",
+                  process, platform_str, i, timeout)
         result = run_cmd(cmd="pgrep -l -x %s" % process,
                          ignore_errors=True, vm=vm)
         if result.returncode == 0:
@@ -237,8 +237,8 @@ def wait_for_email_transfer(timeout=300, vm=None):
             # Retrigger mail queue in case something is deferred
             # by an amavisd-new reconfiguration
             run_cmd(cmd='postqueue -f', vm=vm)
-            log.info('Waiting for SMTP queue to get empty (%i/%i s)',
-                     i, timeout)
+            log.debug('Waiting for SMTP queue to get empty (%i/%i s)',
+                      i, timeout)
         if not run_cmd(cmd='postqueue -j', vm=vm).stdout:
             log.debug('SMTP queue is empty')
             return