From 315086d68d18344fcd3800abd9b36a8cddc03400 Mon Sep 17 00:00:00 2001 From: Gabriel Terwesten Date: Fri, 8 Aug 2025 19:40:48 +0200 Subject: [PATCH] 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. --- src/serena/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/serena/cli.py b/src/serena/cli.py index 8205f9aa..384b6cac 100644 --- a/src/serena/cli.py +++ b/src/serena/cli.py @@ -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)