Skip to content

Add verbosity level support to the print() command #4944

@psss

Description

@psss

Commands like tmt plan show or tmt test show display different amounts of detail based on verbosity flags, but the level gating is done through ad-hoc verbosity checks scattered across show() methods.

Since print() is the method responsible for structured output to stdout, it should support a level parameter — analogous to how info(level=N) controls user-facing logging on stderr. This would give developers a consistent way to gate output detail. For example:

  • print() / level 0 — essential fields (name, summary)
  • print(level=1) — additional fields (fmf id, web link)
  • print(level=2) — full details (fmf sources)

The proposal is to:

  • Add an optional level parameter to print() (defaulting to 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area | maintenanceChanges important for efficiency and the long-term health of the projectcode | loggingChanges related to debug logging

    Type

    No fields configured for Task.

    Projects

    Status
    done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions