diff --git a/lib/sonarlint.js b/lib/sonarlint.js index ba20ff9..91ac84f 100644 --- a/lib/sonarlint.js +++ b/lib/sonarlint.js @@ -52,7 +52,21 @@ class SonarLintLanguageServer extends AutoLanguageClient { } spawnServer (command, args) { - return cp.spawn(command, args) + const process = cp.spawn(command, args); + + process.stdout.on('data', (data) => { + this.logger.debug(`SonarLint Language Server stdout: ${data}`); + }); + + process.stderr.on('data', (data) => { + this.logger.debug(`SonarLint Language Server stderr: ${data}`); + }); + + process.on('close', (code) => { + this.logger.debug(`SonarLint Language Server process exited with code ${code}`); + }); + + return process; } getInitializeParams (projectPath, process) {