feat: VERBOSE=true enables DEBUG-level console output

The log file already captures DEBUG unconditionally. This env var wires
the same to the Rich console handler for troubleshooting without needing
to read the log file.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-12 15:49:28 +00:00
co-authored by Claude Sonnet 4.6
parent cad053e88f
commit 882af37d8e
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -169,6 +169,7 @@ The first run after a fresh install downloads the embedding models (~1-2 GB). Su
| Variable | Default | Description | | Variable | Default | Description |
| :--- | :--- | :--- | | :--- | :--- | :--- |
| `AUTO_MODE` | *(auto)* | Force non-interactive mode even in a terminal; auto-detected otherwise (no TTY = auto) | | `AUTO_MODE` | *(auto)* | Force non-interactive mode even in a terminal; auto-detected otherwise (no TTY = auto) |
| `VERBOSE` | `false` | Set to `true` to enable DEBUG-level console output |
| `TRAINING_MODE` | `face` | `face` — upload crops to Frigate API; `object` — save crops to disk | | `TRAINING_MODE` | `face` | `face` — upload crops to Frigate API; `object` — save crops to disk |
| `STRATEGY` | `auto` | `auto` (adaptive), `standard` (30 images), `broad` (100 images) | | `STRATEGY` | `auto` | `auto` (adaptive), `standard` (30 images), `broad` (100 images) |
| `LIMIT` | *(unset)* | Exact image count — overrides `STRATEGY` | | `LIMIT` | *(unset)* | Exact image count — overrides `STRATEGY` |
+1
View File
@@ -12,6 +12,7 @@ services:
# Auto mode is active by default when no TTY is present (Docker/cron). # Auto mode is active by default when no TTY is present (Docker/cron).
# Set AUTO_MODE=true to force auto mode in an interactive terminal. # Set AUTO_MODE=true to force auto mode in an interactive terminal.
# To run interactively: docker exec -it winnow winnow # To run interactively: docker exec -it winnow winnow
# - VERBOSE=true # Enable DEBUG-level console output
# TRAINING_MODE: face = upload to Frigate face recognition API # TRAINING_MODE: face = upload to Frigate face recognition API
# object = save crops to output dir for manual Frigate placement # object = save crops to output dir for manual Frigate placement
- TRAINING_MODE=face - TRAINING_MODE=face
+2 -1
View File
@@ -20,7 +20,8 @@ logger = logging.getLogger(__name__)
def main() -> None: def main() -> None:
"""Entry point for winnow CLI.""" """Entry point for winnow CLI."""
try: try:
setup_logging(verbose=False) verbose = os.environ.get("VERBOSE", "").lower() in ("true", "1", "yes")
setup_logging(verbose=verbose)
console.print(r""" console.print(r"""
[bold blue]winnow[/bold blue] [bold blue]winnow[/bold blue]