1. ken cochrane
  2. pypi-appengine

Commits

ken cochrane  committed 537e4be

Added a couple of debug logs to see how things are progressing, and to see how many steps are left to perform. Helpful when trying to track how long it will take before the mirror gets back up to date.

  • Participants
  • Parent commits fa6596a
  • Branches default

Comments (0)

Files changed (1)

File fetch.py

View file
     except DownloadError, e:
         logging.warning('changed_packages call failed: '+str(e))
         return
+    add_count = 0
     for name in modified:
         if ('package', name) in todo:
             continue
         todo.append(('package', name))
+        add_count += 1
+    logging.debug("added %d steps " % (add_count,))
     if modified:
         todo.append(('package', ''))
     todo.append(('last_modified', now))
         check_modifications(m, todo)
         if not todo:
             return ""
+    num_steps = len(todo)
+    logging.debug("%s steps left to complete" % (num_steps,))
     action, param = todo[0]
     logging.info('step %s %r' % (action, param))
     try: