From 192dd321f12ddc8c29b1a9037bd5e0a9d3a14dfc Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 28 Jun 2016 10:53:23 -0700 Subject: [PATCH] permissions: Add debug logging --- beetsplug/permissions.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/beetsplug/permissions.py b/beetsplug/permissions.py index aaf923fe8..9bced8396 100644 --- a/beetsplug/permissions.py +++ b/beetsplug/permissions.py @@ -96,6 +96,10 @@ class Permissions(BeetsPlugin): for path in file_chmod_queue: # Changing permissions on the destination file. + self._log.debug( + u'setting file permissions on {}', + util.displayable_path(path), + ) os.chmod(util.syspath(path), file_perm) # Checks if the destination path has the permissions configured. @@ -109,6 +113,10 @@ class Permissions(BeetsPlugin): # Change permissions for the directories. for path in dir_chmod_queue: # Chaning permissions on the destination directory. + self._log.debug( + u'setting directory permissions on {}', + util.displayable_path(path), + ) os.chmod(util.syspath(path), dir_perm) # Checks if the destination path has the permissions configured.