summaryrefslogtreecommitdiff
path: root/dotbot/plugins/clean.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-11-15 15:14:14 +0100
committerAnton Khirnov <anton@khirnov.net>2020-11-15 15:14:14 +0100
commit7eabd2856753c73a818159e7cb3316148ca600dc (patch)
tree41c1ff8a88fb67532a1cfe5f41db3f862d8173e7 /dotbot/plugins/clean.py
parent4d5c7f992a7015f6c5e6d0051057120b8f0c382a (diff)
Tweak log levels.
Use info for changes performed (e.g. changes to the filesystem, code executed). Use verbose for "nothing to do" messages.
Diffstat (limited to 'dotbot/plugins/clean.py')
-rw-r--r--dotbot/plugins/clean.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dotbot/plugins/clean.py b/dotbot/plugins/clean.py
index c2793e5..e7f1561 100644
--- a/dotbot/plugins/clean.py
+++ b/dotbot/plugins/clean.py
@@ -28,7 +28,7 @@ class Clean(dotbot.Plugin):
recursive = targets[target].get('recursive', recursive)
success &= self._clean(target, force, recursive)
if success:
- self._log.info('All targets have been cleaned')
+ self._log.verbose('All targets have been cleaned')
else:
self._log.error('Some targets were not successfully cleaned')
return success
@@ -51,7 +51,7 @@ class Clean(dotbot.Plugin):
if not os.path.exists(path) and os.path.islink(path):
points_at = os.path.join(os.path.dirname(path), os.readlink(path))
if self._in_directory(path, self._context.base_directory()) or force:
- self._log.verbose('Removing invalid link %s -> %s' % (path, points_at))
+ self._log.info('Removing invalid link %s -> %s' % (path, points_at))
os.remove(path)
else:
self._log.verbose('Link %s -> %s not removed.' % (path, points_at))