[Piuparts-commits] [piuparts] 01/01: dwke.py: change logging to make relevant information more visible.

Holger Levsen holger at layer-acht.org
Fri Mar 23 14:33:39 UTC 2018


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

holger pushed a commit to branch develop
in repository piuparts.

commit 0170388b6ecbdd487d97076cd9c059514045f21c
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Mar 23 14:33:31 2018 +0000

    dwke.py: change logging to make relevant information more visible.
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 debian/changelog                       | 2 +-
 master-bin/detect_well_known_errors.py | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f052190..e2cfbd1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
 piuparts (0.85) UNRELEASED; urgency=medium
 
-  * ...
+  * dwke.py: change logging to make relevant information more visible.
 
  -- Holger Levsen <holger at debian.org>  Fri, 16 Feb 2018 12:47:08 +0000
 
diff --git a/master-bin/detect_well_known_errors.py b/master-bin/detect_well_known_errors.py
index 110b18a..2690e9d 100644
--- a/master-bin/detect_well_known_errors.py
+++ b/master-bin/detect_well_known_errors.py
@@ -122,7 +122,10 @@ def detect_well_known_errors(sections, config, problem_list, recheck, recheck_fa
             total_del += del_cnt
             total_add += 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))
+            if del_cnt == 0 and add_cnt == 0:
+                logging.info("%s - %s: no new logfiles parsed" % (current_time, section))
+            else:
+                logging.info("%s - %s: parsed logfiles: %d removed, %d added" % (current_time, section, del_cnt, add_cnt))
         except Busy:
             logging.info("Section is busy")
             todo.append((section, time.time() + 300))

-- 
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