1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 20:19:46 +00:00

Add debug logs

This commit is contained in:
Marcel Robitaille
2019-01-25 16:27:18 -04:00
parent eac9509c75
commit 2be573ab99

View File

@@ -92,6 +92,9 @@ class Installer:
# Fail if source not a directory
if not os.path.isdir(parent):
if self.debug:
self.log.dbg('symlink children of {} to {}'.format(src, dst))
self.log.err('source dotfile is not a directory: {}'
.format(parent))
return []
@@ -122,6 +125,9 @@ class Installer:
src = srcs[i]
dst = dsts[i]
if self.debug:
self.log.dbg('symlink child {} to {}'.format(src, dst))
if Templategen.is_template(src):
if self.debug:
self.log.dbg('dotfile is a template')