Skip to content

Commit

Permalink
ref: log Finder checks
Browse files Browse the repository at this point in the history
  • Loading branch information
azubieta committed May 26, 2022
1 parent 14aabe3 commit 140271d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion appimagebuilder/utils/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def find(self, pattern="*", check_true: [] = None, check_false: [] = None):

check_true_names = [item.__name__ for item in check_true]
check_false_names = [item.__name__ for item in check_false]
logging.debug(
self.logger.debug(
"FIND %s %s %s"
% (pattern, " ".join(check_true_names), " ".join(check_false_names))
)
Expand All @@ -140,8 +140,10 @@ def check_file(self, path, check_true: [] = None, check_false: [] = None):
if check_false is None:
check_false = []

self.logger.debug("Inspecting: %s" % path)
for check_function in check_true:
passed = self._run_check(check_function, path)
self.logger.debug("%s : %s" % (check_function, passed))
if not passed:
return False

Expand Down

0 comments on commit 140271d

Please sign in to comment.