[Piuparts-commits] [piuparts] 02/06: dwke: report total amount of logfiles processed
Holger Levsen
holger at layer-acht.org
Tue Oct 3 22:50:01 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 b9d58e8b5836df8d7ffbd4ed943ef4ce285e37b6
Author: Andreas Beckmann <anbe at debian.org>
Date: Tue Sep 19 17:16:33 2017 +0200
dwke: report total amount of logfiles processed
Signed-off-by: Andreas Beckmann <anbe at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
master-bin/detect_well_known_errors.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/master-bin/detect_well_known_errors.py b/master-bin/detect_well_known_errors.py
index 5d93a5e..8ba7e04 100644
--- a/master-bin/detect_well_known_errors.py
+++ b/master-bin/detect_well_known_errors.py
@@ -93,6 +93,8 @@ def process_section(section, config, problem_list,
def detect_well_known_errors(sections, config, problem_list, recheck, recheck_failed):
+ total_del = 0
+ total_add = 0
for section in sections:
try:
logging.info(time.strftime("%a %b %2d %H:%M:%S %Z %Y", time.localtime()))
@@ -101,12 +103,16 @@ def detect_well_known_errors(sections, config, problem_list, recheck, recheck_fa
(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))
except MissingSection:
pass
+ 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))
if __name__ == '__main__':
--
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