aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rossi <alexandre.rossi@gmail.com>2018-11-05 14:57:35 +0100
committerAlexandre Rossi <alexandre.rossi@gmail.com>2018-11-05 14:57:35 +0100
commit877d88f7423de3fec030c1e37b97247a26ba0f3b (patch)
tree94c315e0e35c54c5e9db1d43d20279ef26506819
parentf011105cca540cb35363634e5c208c8a0186eb00 (diff)
downloadlazygal-877d88f7423de3fec030c1e37b97247a26ba0f3b.zip
lazygal-877d88f7423de3fec030c1e37b97247a26ba0f3b.tar.bz2
print only filename for PRESERVE logging output
-rw-r--r--lazygal/generators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lazygal/generators.py b/lazygal/generators.py
index 751f25a..db3d609 100644
--- a/lazygal/generators.py
+++ b/lazygal/generators.py
@@ -825,7 +825,7 @@ class Album(object):
for pattern in self.preserves:
# Do not delete something the user wants to keep.
if fnmatch.fnmatch(tail, pattern):
- logging.info(' PRESERVE %s', file_path)
+ logging.info(' PRESERVE %s', tail)
return
if os.path.isdir(file_path):
shutil.rmtree(file_path)