[diffoscope] 02/05: compare_files: Improve "Comparing files X and Y" debug message.

Chris Lamb chris at chris-lamb.co.uk
Tue Feb 7 22:50:38 UTC 2017


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

lamby pushed a commit to branch master
in repository diffoscope.

commit d0c97f820d5aee21efd2d5da94e179fc1bb19b1c
Author: Chris Lamb <lamby at debian.org>
Date:   Wed Feb 8 11:41:10 2017 +1300

    compare_files: Improve "Comparing files X and Y" debug message.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/comparators/utils/compare.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/diffoscope/comparators/utils/compare.py b/diffoscope/comparators/utils/compare.py
index 1724487..1f326d5 100644
--- a/diffoscope/comparators/utils/compare.py
+++ b/diffoscope/comparators/utils/compare.py
@@ -61,7 +61,14 @@ def compare_root_paths(path1, path2):
     return compare_files(file1, file2)
 
 def compare_files(file1, file2, source=None):
-    logger.debug("Comparing files %s and %s", file1, file2)
+    logger.debug(
+        "Comparing %s (%s) and %s (%s)",
+        file1.name,
+        file1.__class__.__name__,
+        file2.name,
+        file2.__class__.__name__,
+    )
+
     with profile('has_same_content_as', file1):
         if file1.has_same_content_as(file2):
             logger.debug("has_same_content_as returned True; skipping further comparisons")

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



More information about the Reproducible-commits mailing list