mirror of
1
0
Fork 0

link.py use _log.debug() instead of _log.warning()

As suggested in #83
This commit is contained in:
Darksider3 2016-04-03 13:13:38 +02:00
parent 93cf99e974
commit a7f24ef80e
1 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ class Link(dotbot.Plugin):
os.makedirs(parent)
except OSError as err:
self._log.warning('Failed to create directory %s' % parent)
self._log.warning('Error: %s.' % err.strerror)
self._log.debug('Error: %s.' % err.strerror)
success = False
else:
self._log.lowinfo('Creating directory %s' % parent)
@ -100,7 +100,7 @@ class Link(dotbot.Plugin):
removed = True
except OSError as err:
self._log.warning('Failed to remove %s' % path)
self._log.warning('Error: %s' %err.strerror)
self._log.debug('Error: %s' % err.strerror)
success = False
else:
if removed:
@ -128,7 +128,7 @@ class Link(dotbot.Plugin):
os.symlink(source, destination)
except OSError as err:
self._log.warning('Linking failed %s -> %s' % (link_name, source))
self._log.warning('Error: %s' %err.strerror)
self._log.debug('Error: %s' % err.strerror)
else:
self._log.lowinfo('Creating link %s -> %s' % (link_name, source))
success = True