output: group verbose/debug messages by activity type #62

Open
opened 2026-05-19 18:27:23 +02:00 by heiko · 1 comment
Owner

Currently --verbose and --debug produce a flat stream of messages.
As the pipeline grows (HTTP requests, local git/go commands, file
operations, packaging steps) it becomes hard to filter noise.

Proposal

Introduce named output groups so users can enable only the categories
they care about:

  • http — HTTP requests and responses (currently only shown at debug level)
  • cmd — external command invocations (git, go, dpkg-source, lintian, dupload, …)
  • pack — packaging decisions (deb/rpm version derivation, revision detection, file writes)
  • file — file copies, moves, and directory creation in the pipeline

Possible CLI shapes

gogogo publish --verbose=pack,http
gogogo publish --debug=cmd

Or a single --log flag that accepts category names.

Motivation

During a pack --debug run the output mixes HTTP proxy verification
logs with local dpkg-source invocations and file moves. A --debug=pack
flag would show only packaging decisions (revision derivation, orig
tarball creation, changelog.Debian.gz generation) without the noise
from unrelated subsystems.

Notes

  • Verbose vs debug could remain as levels within a category
    (pack:verbose vs pack:debug), or categories could replace the
    two-level system entirely.
  • Existing --verbose / --debug flags should keep working as
    "enable all categories at the given level" for backwards compatibility.
Currently `--verbose` and `--debug` produce a flat stream of messages. As the pipeline grows (HTTP requests, local git/go commands, file operations, packaging steps) it becomes hard to filter noise. ## Proposal Introduce named output groups so users can enable only the categories they care about: - `http` — HTTP requests and responses (currently only shown at debug level) - `cmd` — external command invocations (`git`, `go`, `dpkg-source`, `lintian`, `dupload`, …) - `pack` — packaging decisions (deb/rpm version derivation, revision detection, file writes) - `file` — file copies, moves, and directory creation in the pipeline ### Possible CLI shapes ``` gogogo publish --verbose=pack,http gogogo publish --debug=cmd ``` Or a single `--log` flag that accepts category names. ### Motivation During a `pack --debug` run the output mixes HTTP proxy verification logs with local `dpkg-source` invocations and file moves. A `--debug=pack` flag would show only packaging decisions (revision derivation, orig tarball creation, changelog.Debian.gz generation) without the noise from unrelated subsystems. ## Notes - Verbose vs debug could remain as levels within a category (`pack:verbose` vs `pack:debug`), or categories could replace the two-level system entirely. - Existing `--verbose` / `--debug` flags should keep working as "enable all categories at the given level" for backwards compatibility.
Author
Owner

AI attribution comment added per repository instruction for this open issue.\n\n(co)authored by ai:gpt-5-codex

AI attribution comment added per repository instruction for this open issue.\n\n(co)authored by ai:gpt-5-codex
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
heiko/gogogo#62
No description provided.