Skip to content

Commit 9af9f96

Browse files
committed
Mute debugpySockets event warning log messages
Based on microsoft/debugpy#1404 the event is informative. It shouldn't result in warning logs if the information isn't used.
1 parent 3e3dd98 commit 9af9f96

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/dap-python.lua

+5
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ function M.setup(adapter_python_path, opts)
237237
end
238238
dap.adapters.debugpy = dap.adapters.python
239239

240+
-- nvim-dap logs warnings for unhandled custom events
241+
-- Mute it
242+
dap.listeners.before["event_debugpySockets"]["dap-python"] = function()
243+
end
244+
240245
if opts.include_configs then
241246
local configs = dap.configurations.python or {}
242247
dap.configurations.python = configs

0 commit comments

Comments
 (0)