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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user