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:
Gabriel Terwesten authored and GitHub committed 2025-08-08 19:40:48 +02:00
1 parent b8daef9167
commit 315086d68d
1 file changed
+1
+1
View File
@@ -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)