[diffoscope] 02/03: diffoscope.progress: Log when we add a progress observer.

Chris Lamb chris at chris-lamb.co.uk
Sat Jan 7 13:12:41 CET 2017


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

lamby pushed a commit to branch master
in repository diffoscope.

commit 3a2327c1328b1d5faf7702027b0519047b470a1d
Author: Chris Lamb <lamby at debian.org>
Date:   Sat Jan 7 12:05:13 2017 +0000

    diffoscope.progress: Log when we add a progress observer.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/progress.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/diffoscope/progress.py b/diffoscope/progress.py
index 390e2b0..60bb912 100644
--- a/diffoscope/progress.py
+++ b/diffoscope/progress.py
@@ -20,6 +20,10 @@
 import os
 import sys
 import json
+import logging
+
+logger = logging.getLogger(__name__)
+
 
 class ProgressManager(object):
     _singleton = {}
@@ -50,6 +54,8 @@ class ProgressManager(object):
     ##
 
     def register(self, observer):
+        logger.debug("Registering %s as a progress observer", observer)
+
         self.observers.append(observer)
 
     def step(self, delta=1, msg=""):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list