1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-09 01:24:16 +00:00

refactor ignore and debug logs

This commit is contained in:
deadc0de6
2021-10-11 16:44:59 +02:00
parent 6f19d7ef7b
commit e90f406ed2
4 changed files with 30 additions and 10 deletions

View File

@@ -160,7 +160,8 @@ class Updater:
return tmp
def _is_template(self, path):
if not Templategen.is_template(path, ignore=self.ignores):
if not Templategen.is_template(path, ignore=self.ignores,
debug=self.debug):
self.log.dbg('{} is NO template'.format(path))
return False
self.log.warn('{} uses template, update manually'.format(path))