mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 14:16:21 +00:00
fix: --log-level option for serena index (#447)
The command was missing a call to `logging.configure` to actually configure logging and make the option have a visible effect.
This commit is contained in:
1 parent
b8daef9167
commit
315086d68d
1 file changed
+1
@@ -446,6 +446,7 @@ class ProjectCommands(AutoRegisteringGroup):
|
||||
@staticmethod
|
||||
def _index_project(project: str, log_level: str) -> None:
|
||||
lvl = logging.getLevelNamesMapping()[log_level.upper()]
|
||||
logging.configure(level=lvl)
|
||||
proj = Project.load(os.path.abspath(project))
|
||||
print(f"Indexing symbols in project {project}…")
|
||||
ls = proj.create_language_server(log_level=lvl)
|
||||
|
||||
Reference in new issue
Block a user