[diffoscope] 02/05: diffocope.tempfiles: Log cleanup process

Chris Lamb chris at chris-lamb.co.uk
Tue Jan 10 14:00:58 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 4f975c99e4ae3cde5d78c9831e240fb13b1825a4
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Jan 10 12:29:45 2017 +0000

    diffocope.tempfiles: Log cleanup process
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/tempfiles.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/diffoscope/tempfiles.py b/diffoscope/tempfiles.py
index 1fe2e6b..b63bb16 100644
--- a/diffoscope/tempfiles.py
+++ b/diffoscope/tempfiles.py
@@ -43,6 +43,8 @@ def get_temporary_directory(*args, **kwargs):
     return d
 
 def clean_all_temp_files():
+    logger.debug("Cleaning %d temp files", len(_FILES))
+
     for x in _FILES:
         try:
             os.unlink(x)
@@ -51,6 +53,8 @@ def clean_all_temp_files():
         except:
             logger.exception("Unable to delete %s", x)
 
+    logger.debug("Cleaning %d temporary directories", len(_DIRS))
+
     for x in _DIRS:
         try:
             x.cleanup()

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


More information about the diffoscope mailing list