Configure logging regardsless of the env
This commit is contained in:
parent
b5bd56e110
commit
bfdaa4652a
1 changed files with 4 additions and 2 deletions
|
|
@ -81,7 +81,9 @@ def main(
|
||||||
loaded_config = AppConfig.model_validate(yaml_data)
|
loaded_config = AppConfig.model_validate(yaml_data)
|
||||||
set_config(loaded_config)
|
set_config(loaded_config)
|
||||||
|
|
||||||
# Configure logging minimally for CLI context
|
# Configure logging for CLI context
|
||||||
|
configure_cli_logging()
|
||||||
|
|
||||||
if get_config().environment == "development":
|
if get_config().environment == "development":
|
||||||
# Lazy import logfire only in development
|
# Lazy import logfire only in development
|
||||||
try:
|
try:
|
||||||
|
|
@ -92,7 +94,7 @@ def main(
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
configure_cli_logging()
|
# Suppress warnings in production
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
|
|
||||||
# Run version check before any command
|
# Run version check before any command
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue