We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 98e3219 + ea80e1c commit 82d3fd5Copy full SHA for 82d3fd5
2 files changed
libs/ide_services/__init__.py
@@ -1,6 +1,7 @@
1
from .services import (
2
get_lsp_brige_port,
3
ide_language,
4
+ ide_logging,
5
install_python_env,
6
update_slash_commands,
7
)
@@ -10,4 +11,5 @@
10
11
"install_python_env",
12
"update_slash_commands",
13
"ide_language",
14
+ "ide_logging",
15
]
libs/ide_services/services.py
@@ -22,15 +22,13 @@ def ide_language() -> str:
22
23
24
@rpc_call
25
-def log_info(message: str):
+def ide_logging(level: str, message: str):
26
+ """
27
+ level: "info" | "warn" | "error" | "debug"
28
29
pass
30
31
-@rpc_call
-def log_warn(message: str):
- pass
32
-
33
34
35
-def log_error(message: str):
36
+# NOTE: for compatibility, remove this after all usages are replaced with ide_logging
+def log_info(message):
+ return ide_logging("info", message)
0 commit comments