From 8d8f5c707b92dcb38a85a5a3323a7c60d23cf26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=80=D0=B5=D0=B4=D1=80=D0=B0=D0=B3=20=D0=9D=D0=B8?= =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=B8=D1=9B?= Date: Wed, 29 May 2024 19:27:12 +0200 Subject: [PATCH] Remove logging.basicConfig() (#2478) * remove logging.basicConfig() Avoid polluting other packages closes #2477 * Revert "remove logging.basicConfig()" This reverts commit 60e1768c0f6002c9feae0e499ff4efec22a369b8. * add comments --- third_party/websocket_server/websocket_server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/third_party/websocket_server/websocket_server.py b/third_party/websocket_server/websocket_server.py index 00ba508fe..1597a79b2 100644 --- a/third_party/websocket_server/websocket_server.py +++ b/third_party/websocket_server/websocket_server.py @@ -15,7 +15,9 @@ from socketserver import ThreadingMixIn, TCPServer, StreamRequestHandler logger = logging.getLogger(__name__) -logging.basicConfig() +# This line installed a root logger, which results in duplicate log entries. +# For more details, see: https://github.com/sublimelsp/LSP/issues/2477 +# logging.basicConfig() ''' +-+-+-+-+-------+-+-------------+-------------------------------+