Skip to content

Commit 958797a

Browse files
Jdubrickcursoragent
andcommitted
fix openapi trailing newline and enable synthesis logs
Match generate_openapi_schema.py output (no trailing newline) so spectral passes, and call setup_logging before library-mode synthesis so INFO replace logs are visible at boot. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent e93a339 commit 958797a

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

docs/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21329,4 +21329,4 @@
2132921329
"description": "Vector stores and files."
2133021330
}
2133121331
]
21332-
}
21332+
}

src/client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ async def _load_library_client(self, config: LlamaStackConfiguration) -> None:
6464
"""
6565
logger.info("Using Llama stack as library client")
6666

67+
# Configure logging before synthesis/enrichment so INFO lines from those
68+
# steps are not dropped. Without handlers, Python's lastResort only
69+
# emits WARNING and above — which is why replace logs disappeared after
70+
# moving from warning to info.
71+
setup_logging()
72+
6773
if config.library_client_config_path is not None and config.config is None:
6874
self._config_path = self._enrich_library_config(
6975
config.library_client_config_path

0 commit comments

Comments
 (0)