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/create.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dotbot/plugins/create.py') diff --git a/dotbot/plugins/create.py b/dotbot/plugins/create.py index eee6e17..7e39c1a 100644 --- a/dotbot/plugins/create.py +++ b/dotbot/plugins/create.py @@ -23,7 +23,7 @@ class Create(dotbot.Plugin): path = os.path.expandvars(os.path.expanduser(path)) success &= self._create(path) if success: - self._log.info('All paths have been set up') + self._log.verbose('All paths have been set up') else: self._log.error('Some paths were not successfully set up') return success @@ -40,7 +40,7 @@ class Create(dotbot.Plugin): if not self._exists(path): self._log.debug('Trying to create path %s' % path) try: - self._log.verbose('Creating path %s' % path) + self._log.info('Creating path %s' % path) os.makedirs(path) except OSError: self._log.warning('Failed to create path %s' % path) -- cgit v1.2.3