From 7eabd2856753c73a818159e7cb3316148ca600dc Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 15 Nov 2020 15:14:14 +0100 Subject: Tweak log levels. Use info for changes performed (e.g. changes to the filesystem, code executed). Use verbose for "nothing to do" messages. --- dotbot/plugins/shell.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dotbot/plugins/shell.py') 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 -- cgit v1.2.3