Do not suppress logs in development
This commit is contained in:
parent
ab8020e0bc
commit
52febd01f9
1 changed files with 4 additions and 2 deletions
|
|
@ -17,6 +17,7 @@ if Config.ENV == "development":
|
||||||
logfire.configure(send_to_logfire="if-token-present")
|
logfire.configure(send_to_logfire="if-token-present")
|
||||||
logfire.instrument_pydantic_ai()
|
logfire.instrument_pydantic_ai()
|
||||||
else:
|
else:
|
||||||
|
configure_cli_logging()
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
|
|
||||||
cli = typer.Typer(
|
cli = typer.Typer(
|
||||||
|
|
@ -113,8 +114,9 @@ def main(
|
||||||
),
|
),
|
||||||
):
|
):
|
||||||
"""haiku.rag CLI - Vector database RAG system"""
|
"""haiku.rag CLI - Vector database RAG system"""
|
||||||
# Ensure only haiku.rag logs are emitted in CLI context
|
if Config.ENV != "development":
|
||||||
configure_cli_logging()
|
# Ensure only haiku.rag logs are emitted in CLI context
|
||||||
|
configure_cli_logging()
|
||||||
# Run version check before any command
|
# Run version check before any command
|
||||||
asyncio.run(check_version())
|
asyncio.run(check_version())
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue