Skip to content

Commit 8950f6c

Browse files
committed
Improve debugging message
1 parent a65fd38 commit 8950f6c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

deps/find_libpython.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,11 @@ def finding_libpython():
297297
for path in candidate_paths():
298298
logger.debug("Candidate: %s", path)
299299
normalized = normalize_path(path)
300-
logger.debug("Normalized: %s", normalized)
301300
if normalized:
302301
logger.debug("Found: %s", normalized)
303302
yield normalized
303+
else:
304+
logger.debug("Not found.")
304305

305306

306307
def find_libpython():
@@ -328,7 +329,9 @@ def cli_find_libpython(cli_op, verbose):
328329
# error.
329330

330331
if verbose:
331-
logging.basicConfig(level=logging.DEBUG)
332+
logging.basicConfig(
333+
format="%(levelname)s %(message)s",
334+
level=logging.DEBUG)
332335

333336
if cli_op == "list-all":
334337
print_all(finding_libpython())

0 commit comments

Comments
 (0)