lsp: Log to stderr rather than a file

This commit is contained in:
James Westman 2022-10-15 11:26:18 -05:00
parent 447785ec8c
commit b3783b9c6a
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
2 changed files with 9 additions and 13 deletions

View file

@ -48,7 +48,6 @@ class BlueprintApp:
port = self.add_subcommand("port", "Interactive porting tool", self.cmd_port)
lsp = self.add_subcommand("lsp", "Run the language server (for internal use by IDEs)", self.cmd_lsp)
lsp.add_argument("--logfile", dest="logfile", default=None, type=argparse.FileType('a'))
self.add_subcommand("help", "Show this message", self.cmd_help)
@ -125,7 +124,7 @@ class BlueprintApp:
def cmd_lsp(self, opts):
langserv = LanguageServer(opts.logfile)
langserv = LanguageServer()
langserv.run()