[Piuparts-commits] [piuparts] 01/01: master-bin/detect_well_known_errors.py: compress output.

Holger Levsen holger at layer-acht.org
Mon Oct 30 10:06:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit e330817c5f42eb95ccc5ecd1940e382ba78e92ad
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Oct 30 11:06:12 2017 +0100

    master-bin/detect_well_known_errors.py: compress output.
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 debian/changelog                       | 1 +
 master-bin/detect_well_known_errors.py | 9 +++------
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index bce783d..86ccee8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -28,6 +28,7 @@ piuparts (0.83) UNRELEASED; urgency=medium
   [ Holger Levsen ]
   * dwke.py/-analyze.py/-report.py: quietly exit if another process is still
     running.
+  * master-bin/detect_well_known_errors.py: compress output.
 
  -- Holger Levsen <holger at debian.org>  Sat, 07 Oct 2017 17:42:12 +0200
 
diff --git a/master-bin/detect_well_known_errors.py b/master-bin/detect_well_known_errors.py
index c796727..4c948e0 100644
--- a/master-bin/detect_well_known_errors.py
+++ b/master-bin/detect_well_known_errors.py
@@ -100,20 +100,17 @@ def detect_well_known_errors(sections, config, problem_list, recheck, recheck_fa
     total_add = 0
     for section in sections:
         try:
-            logging.info(time.strftime("%a %b %2d %H:%M:%S %Z %Y", time.localtime()))
-            logging.info("%s:" % section)
-
             (del_cnt, add_cnt) = \
                 process_section(section, config, problem_list,
                                 recheck, recheck_failed)
             total_del += del_cnt
             total_add += add_cnt
-
-            logging.info("parsed logfiles: %d removed, %d added" % (del_cnt, add_cnt))
+            current_time=time.strftime("%a %b %2d %H:%M:%S %Z %Y", time.localtime())
+            logging.info("%s - %s: parsed logfiles: %d removed, %d added" % (current_time, section, del_cnt, add_cnt))
         except MissingSection:
             pass
-        logging.info("")
 
+    logging.info("")
     logging.info(time.strftime("%a %b %2d %H:%M:%S %Z %Y", time.localtime()))
     logging.info("total parsed logfiles: %d removed, %d added" % (total_del, total_add))
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list