Skip to content

Commit

Permalink
Improve debugging message
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Sep 14, 2018
1 parent a65fd38 commit 8950f6c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deps/find_libpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,11 @@ def finding_libpython():
for path in candidate_paths():
logger.debug("Candidate: %s", path)
normalized = normalize_path(path)
logger.debug("Normalized: %s", normalized)
if normalized:
logger.debug("Found: %s", normalized)
yield normalized
else:
logger.debug("Not found.")


def find_libpython():
Expand Down Expand Up @@ -328,7 +329,9 @@ def cli_find_libpython(cli_op, verbose):
# error.

if verbose:
logging.basicConfig(level=logging.DEBUG)
logging.basicConfig(
format="%(levelname)s %(message)s",
level=logging.DEBUG)

if cli_op == "list-all":
print_all(finding_libpython())
Expand Down

0 comments on commit 8950f6c

Please sign in to comment.