[diffoscope] 02/03: comparators.Device: Use our logger instance, not the top-level logging module.

Chris Lamb chris at chris-lamb.co.uk
Wed Feb 1 10:06:54 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 3040112cb6b278d2d511fa52ee4b7c93d3fa336a
Author: Chris Lamb <lamby at debian.org>
Date:   Wed Feb 1 22:04:47 2017 +1300

    comparators.Device: Use our logger instance, not the top-level logging module.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/comparators/device.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/device.py b/diffoscope/comparators/device.py
index e9f2385..f075950 100644
--- a/diffoscope/comparators/device.py
+++ b/diffoscope/comparators/device.py
@@ -41,7 +41,7 @@ class Device(File):
         return st.st_mode, os.major(st.st_rdev), os.minor(st.st_rdev)
 
     def has_same_content_as(self, other):
-        logging.debug('Device.has_same_content: %s %s', self, other)
+        logger.debug("has_same_content: %s %s", self, other)
         try:
             return self.get_device() == other.get_device()
         except (AttributeError, OSError):

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


More information about the diffoscope mailing list