From 567c7713effffc4e79496db0edd57747a7b58f4f Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Thu, 18 Nov 2021 15:14:21 +0100 Subject: [PATCH] debug logs --- dotdrop/dotdrop.py | 4 ++++ dotdrop/templategen.py | 1 + 2 files changed, 5 insertions(+) diff --git a/dotdrop/dotdrop.py b/dotdrop/dotdrop.py index 9fdfab1..4fbe6db 100644 --- a/dotdrop/dotdrop.py +++ b/dotdrop/dotdrop.py @@ -306,11 +306,15 @@ def cmd_install(opts): # filtered dotfiles to install uniq = uniq_list(opts.install_keys) dotfiles = [d for d in dotfiles if d.key in uniq] + if not dotfiles: msg = 'no dotfile to install for this profile (\"{}\")' LOG.warn(msg.format(opts.profile)) return False + LOG.dbg('dotfiles registered for install: {}'.format( + [k.key for k in dotfiles])) + # the installer tmpdir = None if opts.install_temporary: diff --git a/dotdrop/templategen.py b/dotdrop/templategen.py index b5ca7f9..03196de 100644 --- a/dotdrop/templategen.py +++ b/dotdrop/templategen.py @@ -45,6 +45,7 @@ class Templategen: self.base = base.rstrip(os.sep) self.debug = debug self.log = Logger(debug=self.debug) + self.log.dbg('loading templategen') self.variables = {} loader1 = FileSystemLoader(self.base) loader2 = FunctionLoader(self._template_loader)