[Piuparts-devel] [Git][debian/piuparts][develop] master-bin/detect_well_known_errors.py: suppress output if nothing new is found in a section.
Holger Levsen
gitlab at salsa.debian.org
Wed Oct 24 16:00:23 BST 2018
Holger Levsen pushed to branch develop at Debian / piuparts
Commits:
011b9dec by Holger Levsen at 2018-10-24T15:00:01Z
master-bin/detect_well_known_errors.py: suppress output if nothing new is found in a section.
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
2 changed files:
- debian/changelog
- master-bin/detect_well_known_errors.py
Changes:
=====================================
debian/changelog
=====================================
@@ -1,6 +1,7 @@
piuparts (0.94) UNRELEASED; urgency=medium
- * ...
+ * master-bin/detect_well_known_errors.py: suppress output if nothing new is
+ found in a section.
-- Holger Levsen <holger at debian.org> Sun, 21 Oct 2018 14:03:22 +0200
=====================================
master-bin/detect_well_known_errors.py
=====================================
@@ -123,7 +123,7 @@ def detect_well_known_errors(sections, config, problem_list, recheck, recheck_fa
total_add += add_cnt
current_time=time.strftime("%a %b %2d %H:%M:%S %Z %Y", time.localtime())
if del_cnt == 0 and add_cnt == 0:
- logging.info("%s - %s: nothing new" % (current_time, section))
+ pass # nothing new
else:
logging.info("%s - %s: parsed logfiles: %d removed, %d added" % (current_time, section, del_cnt, add_cnt))
except Busy:
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/011b9decb97ba534fd16560b728ba5a99fb14797
--
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/011b9decb97ba534fd16560b728ba5a99fb14797
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20181024/22a07545/attachment.html>
More information about the Piuparts-devel
mailing list