mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-07 13:23:29 +00:00
debug logs
This commit is contained in:
@@ -306,11 +306,15 @@ def cmd_install(opts):
|
|||||||
# filtered dotfiles to install
|
# filtered dotfiles to install
|
||||||
uniq = uniq_list(opts.install_keys)
|
uniq = uniq_list(opts.install_keys)
|
||||||
dotfiles = [d for d in dotfiles if d.key in uniq]
|
dotfiles = [d for d in dotfiles if d.key in uniq]
|
||||||
|
|
||||||
if not dotfiles:
|
if not dotfiles:
|
||||||
msg = 'no dotfile to install for this profile (\"{}\")'
|
msg = 'no dotfile to install for this profile (\"{}\")'
|
||||||
LOG.warn(msg.format(opts.profile))
|
LOG.warn(msg.format(opts.profile))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
LOG.dbg('dotfiles registered for install: {}'.format(
|
||||||
|
[k.key for k in dotfiles]))
|
||||||
|
|
||||||
# the installer
|
# the installer
|
||||||
tmpdir = None
|
tmpdir = None
|
||||||
if opts.install_temporary:
|
if opts.install_temporary:
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ class Templategen:
|
|||||||
self.base = base.rstrip(os.sep)
|
self.base = base.rstrip(os.sep)
|
||||||
self.debug = debug
|
self.debug = debug
|
||||||
self.log = Logger(debug=self.debug)
|
self.log = Logger(debug=self.debug)
|
||||||
|
self.log.dbg('loading templategen')
|
||||||
self.variables = {}
|
self.variables = {}
|
||||||
loader1 = FileSystemLoader(self.base)
|
loader1 = FileSystemLoader(self.base)
|
||||||
loader2 = FunctionLoader(self._template_loader)
|
loader2 = FunctionLoader(self._template_loader)
|
||||||
|
|||||||
Reference in New Issue
Block a user