Skip to content

Bug: Stray console.print(data) debug lines pollute CLI output #276

@mannubaveja007

Description

@mannubaveja007

Description

Three production files contain raw console.print(data) calls that dump the full Python dict to the terminal on every view command, before the nicely formatted Panel output.

Affected locations

  • pyintelowl/cli/_jobs_utils.py line 78, inside _render_job_attributes()
  • pyintelowl/cli/investigations.py line 98, inside _render_investigation_attributes()
  • pyintelowl/cli/playbooks.py line 30, inside _display_playbook()

Steps to reproduce

pyintelowl jobs view <any_job_id> pyintelowl investigations view <any_investigation_id> pyintelowl playbooks view <any_playbook_name>

Expected behavior

Only the formatted Panel output is shown.

Actual behavior

The raw Python dict is printed to the terminal above the Panel on every invocation.

Fix

Remove the three console.print(data) lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions