[tor-commits] [sbws/master] Log list of allowed extensions, not the extension that the file has

pastly at torproject.org pastly at torproject.org
Thu Aug 9 14:21:19 UTC 2018


commit 84cb78d655e3fcf3e7d98bb9f157341e7a80ee34
Author: Matt Traudt <sirmatt at ksu.edu>
Date:   Wed Aug 1 19:21:05 2018 -0400

    Log list of allowed extensions, not the extension that the file has
---
 sbws/core/cleanup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbws/core/cleanup.py b/sbws/core/cleanup.py
index d300997..3f677a0 100644
--- a/sbws/core/cleanup.py
+++ b/sbws/core/cleanup.py
@@ -54,7 +54,7 @@ def _get_files_mtime_older_than(dname, days_delta, extensions):
             _, ext = os.path.splitext(fname)
             if ext not in extensions:
                 log.debug('Ignoring %s because its extension is not in '
-                          '%s', fname, ext)
+                          '%s', fname, extensions)
                 continue
             # using file modification time instead of parsing the name
             # of the file.





More information about the tor-commits mailing list