Skip to content

pcsclient: remove leftover debugging 'print(args)' statement#491

Open
berrange wants to merge 1 commit into
intel:mainfrom
berrange:pcsclient-debug
Open

pcsclient: remove leftover debugging 'print(args)' statement#491
berrange wants to merge 1 commit into
intel:mainfrom
berrange:pcsclient-debug

Conversation

@berrange

@berrange berrange commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

Dumping the python "Namespace" object to stdout after parsing argv serves no end-user purpose:

  $ pcsclient.py cache
  Namespace(command='cache', url=None, input_file=None, output_dir=None, sub_dir=False, expire=None, tcb_update_type=None, func=<function pcs_cache at 0x7ff9102ea770>)
  Please note: A prompt may appear asking for your keyring password to access stored credentials.
  Please input ApiKey for Intel PCS:

Remove what is presumably a leftover debugging statement:

  $ pcsclient.py cache
  Please note: A prompt may appear asking for your keyring password to access stored credentials.
  Please input ApiKey for Intel PCS:

Dumping the python "Namespace" object to stdout after parsing argv
serves no end-user purpose:

  $ pcsclient.py cache
  Namespace(command='cache', url=None, input_file=None, output_dir=None, sub_dir=False, expire=None, tcb_update_type=None, func=<function pcs_cache at 0x7ff9102ea770>)
  Please note: A prompt may appear asking for your keyring password to access stored credentials.
  Please input ApiKey for Intel PCS:

Remove what is presumably a leftover debugging statement:

  $ pcsclient.py cache
  Please note: A prompt may appear asking for your keyring password to access stored credentials.
  Please input ApiKey for Intel PCS:

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
@berrange

Copy link
Copy Markdown
Contributor Author

Rebased to latest HEAD

@mbronk-intc mbronk-intc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Semi-related: @mtomczew - please take a look 👀 , if you wouldn't want/need to have it replaced with a proper (verbose-mode-only?) CLI print-out.

@mtomczew mtomczew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree this log line looks weird, especially func value. Maybe later we will add some more verbose logs, but for now removal of this line is OK for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants