From 2a39caf2c6814d6aa85f6077c56e97995e3dad58 Mon Sep 17 00:00:00 2001 From: Jeff Schnitter Date: Tue, 18 Nov 2025 16:23:04 -0800 Subject: [PATCH] fix: change default logging level from INFO to WARNING - Users no longer see INFO log messages by default - Still shows WARNING (slow requests) and ERROR/CRITICAL if they occur - CLI output is cleaner and more suitable for parsing by other tools - Users can enable full diagnostics with -l DEBUG or -l INFO Fixes #170 --- cortexapps_cli/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cortexapps_cli/cli.py b/cortexapps_cli/cli.py index c389ca7..1327aab 100755 --- a/cortexapps_cli/cli.py +++ b/cortexapps_cli/cli.py @@ -87,7 +87,7 @@ def global_callback( url: str = typer.Option(None, "--url", "-u", help="Base URL for the API", envvar="CORTEX_BASE_URL"), config_file: str = typer.Option(os.path.join(os.path.expanduser('~'), '.cortex', 'config'), "--config", "-c", help="Config file path", envvar="CORTEX_CONFIG"), tenant: str = typer.Option("default", "--tenant", "-t", help="Tenant alias", envvar="CORTEX_TENANT_ALIAS"), - log_level: Annotated[str, typer.Option("--log-level", "-l", help="Set the logging level")] = "INFO", + log_level: Annotated[str, typer.Option("--log-level", "-l", help="Set the logging level")] = "WARNING", rate_limit: int = typer.Option(None, "--rate-limit", "-r", help="API rate limit in requests per minute (default: 1000)", envvar="CORTEX_RATE_LIMIT") ): if not ctx.obj: