Only configure logfire in cli when not in development
This commit is contained in:
parent
db47eb45cb
commit
42fe2201af
1 changed files with 4 additions and 4 deletions
|
|
@ -13,10 +13,10 @@ from haiku.rag.logging import configure_cli_logging
|
|||
from haiku.rag.migration import migrate_sqlite_to_lancedb
|
||||
from haiku.rag.utils import is_up_to_date
|
||||
|
||||
logfire.configure(send_to_logfire="if-token-present")
|
||||
logfire.instrument_pydantic_ai()
|
||||
|
||||
if not Config.ENV == "development":
|
||||
if Config.ENV == "development":
|
||||
logfire.configure(send_to_logfire="if-token-present")
|
||||
logfire.instrument_pydantic_ai()
|
||||
else:
|
||||
warnings.filterwarnings("ignore")
|
||||
|
||||
cli = typer.Typer(
|
||||
|
|
|
|||
Loading…
Reference in a new issue