Multilspy: shortened lsp log messages by cutting them off at 90 chars

This commit is contained in:
Michael Panchenko committed 2025-06-17 13:07:29 +02:00
1 parent a6642178a6
commit 206b6a1d5c
1 file changed
+1 -1
+1 -1
View File
@@ -227,7 +227,7 @@ class LanguageServer:
self.completions_available = asyncio.Event()
if config.trace_lsp_communication:
def logging_fn(source: str, target: str, msg: StringDict | str):
self.logger.log(f"LSP: {source} -> {target}: {str(msg)}", self.logger.logger.level)
self.logger.log(f"LSP: {source} -> {target}: {str(msg)[:90]}...", self.logger.logger.level)
else:
logging_fn = None