Skip to content

Commit 4b4f1c1

Browse files
Merge pull request #500 from codeflash-ai/fix/set-console-quiet-in-init
[FIX][LSP] Set the console to quiet in the package init
2 parents f8c7f2a + 57a43a1 commit 4b4f1c1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

codeflash/lsp/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Silence the console module to prevent stdout pollution
2+
from codeflash.cli_cmds.console import console
3+
4+
console.quiet = True

codeflash/lsp/server_entry.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,5 @@ def setup_logging() -> logging.Logger:
3939
log = setup_logging()
4040
log.info("Starting Codeflash Language Server...")
4141

42-
# Silence the console module to prevent stdout pollution
43-
from codeflash.cli_cmds.console import console
44-
45-
console.quiet = True
46-
# console.enable()
47-
4842
# Start the language server
4943
server.start_io()

0 commit comments

Comments
 (0)