[Piuparts-devel] [Git][debian/piuparts][develop] master-bin/detect_well_known_errors.py: avoid more output with low signal

Holger Levsen gitlab at salsa.debian.org
Wed Oct 24 20:55:55 BST 2018


Holger Levsen pushed to branch develop at Debian / piuparts


Commits:
15caf640 by Holger Levsen at 2018-10-24T19:55:43Z
master-bin/detect_well_known_errors.py: avoid more output with low signal

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,7 +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.
+    found in a section, or section is busy or has been recently processed.
 
  -- Holger Levsen <holger at debian.org>  Sun, 21 Oct 2018 14:03:22 +0200
 


=====================================
master-bin/detect_well_known_errors.py
=====================================
@@ -113,7 +113,7 @@ def detect_well_known_errors(sections, config, problem_list, recheck, recheck_fa
         (section, next_try) = todo.popleft()
         now = time.time()
         if (now < next_try):
-            logging.info("Sleeping while sections are busy")
+            # sleeping, section has been tried recently
             time.sleep(max(30, next_try - now) + 30)
         try:
             (del_cnt, add_cnt) = \
@@ -127,7 +127,7 @@ def detect_well_known_errors(sections, config, problem_list, recheck, recheck_fa
             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")
+            # section is busy
             todo.append((section, time.time() + 300))
         except MissingSection:
             pass



View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/15caf640a774c3c1026ac89a161205219b4854c7

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/15caf640a774c3c1026ac89a161205219b4854c7
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/42a3ccd9/attachment-0001.html>


More information about the Piuparts-devel mailing list