diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-11-15 15:14:14 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-11-15 15:14:14 +0100 |
commit | 7eabd2856753c73a818159e7cb3316148ca600dc (patch) | |
tree | 41c1ff8a88fb67532a1cfe5f41db3f862d8173e7 /dotbot/plugins/shell.py | |
parent | 4d5c7f992a7015f6c5e6d0051057120b8f0c382a (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/shell.py')
-rw-r--r-- | dotbot/plugins/shell.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dotbot/plugins/shell.py b/dotbot/plugins/shell.py index c1575ff..6fe79b8 100644 --- a/dotbot/plugins/shell.py +++ b/dotbot/plugins/shell.py @@ -42,11 +42,11 @@ class Shell(dotbot.Plugin): cmd = item msg = None if msg is None: - self._log.verbose(cmd) + self._log.info(cmd) elif quiet: - self._log.verbose('%s' % msg) + self._log.info('%s' % msg) else: - self._log.verbose('%s [%s]' % (msg, cmd)) + self._log.info('%s [%s]' % (msg, cmd)) ret = dotbot.util.shell_command( cmd, cwd=self._context.base_directory(), @@ -58,7 +58,7 @@ class Shell(dotbot.Plugin): success = False self._log.warning('Command [%s] failed' % cmd) if success: - self._log.info('All commands have been executed') + self._log.verbose('All commands have been executed') else: self._log.error('Some commands were not successfully executed') return success |