From 93309eb9bcf2111eb072dd82269a7a439e0c8e26 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sat, 25 Sep 2021 18:56:06 +0200 Subject: feat: add a logger based on plenary.log (#99) --- lua/nvim-lsp-installer/process.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/nvim-lsp-installer/process.lua') diff --git a/lua/nvim-lsp-installer/process.lua b/lua/nvim-lsp-installer/process.lua index 8669f7b6..5b4bc22a 100644 --- a/lua/nvim-lsp-installer/process.lua +++ b/lua/nvim-lsp-installer/process.lua @@ -7,7 +7,7 @@ local M = {} local function connect_sink(pipe, sink) return function(err, data) if err then - log.error { "Unexpected error when reading pipe.", err } + -- log.error { "Unexpected error when reading pipe.", err } end if data ~= nil then local lines = vim.split(data, "\n") @@ -51,7 +51,7 @@ function M.spawn(cmd, opts, callback) local stdio = { stdin, stdout, stderr } - log.debug { "Spawning", cmd, opts } + -- log.debug { "Spawning", cmd, opts } local spawn_opts = { env = opts.env, @@ -90,7 +90,7 @@ function M.spawn(cmd, opts, callback) return nil, nil end - log.debug { "Spawned with pid", pid } + -- log.debug { "Spawned with pid", pid } stdout:read_start(connect_sink(stdout, opts.stdio_sink.stdout)) stderr:read_start(connect_sink(stderr, opts.stdio_sink.stderr)) -- cgit v1.2.3-70-g09d2