Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix debug logging #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix debug logging #77

wants to merge 1 commit into from

Conversation

Akrog
Copy link

@Akrog Akrog commented May 29, 2020

We currently have a couple of issues with the enabling and disabling of debug logs:

  • Passing "debug=True" on client creation will not output ssh logs.
  • Calling debug_rest to set debug logs will not enable logs on SSH if the ssh client has not yet been created.
  • Once enabled, SSH and HTTP debug logs cannot be disabled.

This PR fixes those 2 issues.

Closes #76

We currently have a couple of issues with the enabling and disabling of
debug logs:

- Passing "debug=True" on client creation will not output ssh logs.

- Once enabled, SSH and HTTP debug logs cannot be disabled.

This patch fixes the first issue by making "set_debug_flag" as class
methods and always calling ssh's "set_debug_flag", unlike now that we
only call it when the ssh instance has already been created.

For the second issue we add the missing disabling code in both
"set_debug_flag" methods.

Closes hpe-storage#76
@hemna
Copy link
Contributor

hemna commented Sep 22, 2021

lgtm

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.

Debug logging cannot be disabled and SSH logs are not enabled when passing debug=True on client init
2 participants