From 38e191dd1852ef4f61c2c8aa4d2131118f63f7e3 Mon Sep 17 00:00:00 2001 From: doolio Date: Tue, 13 Sep 2022 11:51:53 +0200 Subject: [PATCH] Prefer INFO log message for missing optional modules (#265) Some modules are optional and therefore may not be installed by the user. Log such events for information rather than a warning to the user. Resolves #265. --- pylsp/config/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylsp/config/config.py b/pylsp/config/config.py index 4ddb4988..66874961 100644 --- a/pylsp/config/config.py +++ b/pylsp/config/config.py @@ -71,7 +71,7 @@ def __init__(self, root_uri, init_opts, process_id, capabilities): try: entry_point.load() except Exception as e: # pylint: disable=broad-except - log.warning("Failed to load %s entry point '%s': %s", PYLSP, entry_point.name, e) + log.info("Failed to load %s entry point '%s': %s", PYLSP, entry_point.name, e) self._pm.set_blocked(entry_point.name) # Load the entry points into pluggy, having blocked any failing ones