From 90d045c97601d06dcce4fd8916f9b6a14bf1e16b Mon Sep 17 00:00:00 2001 From: Justin Su Date: Wed, 9 Jul 2025 12:21:15 -0400 Subject: [PATCH] Output logging status even if log database doesn't exist --- llm/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llm/cli.py b/llm/cli.py index 4c5151d8..61392cd8 100644 --- a/llm/cli.py +++ b/llm/cli.py @@ -1351,14 +1351,14 @@ def logs_path(): @logs.command(name="status") def logs_status(): "Show current status of database logging" - path = logs_db_path() - if not path.exists(): - click.echo("No log database found at {}".format(path)) - return if logs_on(): click.echo("Logging is ON for all prompts".format()) else: click.echo("Logging is OFF".format()) + path = logs_db_path() + if not path.exists(): + click.echo("No log database found at {}".format(path)) + return db = sqlite_utils.Database(path) migrate(db) click.echo("Found log database at {}".format(path))