diff --git a/src/debugpy/common/log.py b/src/debugpy/common/log.py index fb8f5029b..099e93c71 100644 --- a/src/debugpy/common/log.py +++ b/src/debugpy/common/log.py @@ -304,6 +304,7 @@ def report_paths(get_paths, label=None): swallow_exception( "Error evaluating {0}", repr(expr) if expr else util.srcnameof(get_paths), + level="info", ) return @@ -360,7 +361,9 @@ def report_paths(get_paths, label=None): for pkg in importlib_metadata.distributions(): report(" {0}=={1}\n", pkg.name, pkg.version) except Exception: # pragma: no cover - swallow_exception("Error while enumerating installed packages.") + swallow_exception( + "Error while enumerating installed packages.", level="info" + ) return "".join(result).rstrip("\n")