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

Pass logging debug parameter to http attribute #63

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

markusschanta
Copy link

@markusschanta markusschanta commented Jul 17, 2023

Hi, 👋

this is a really useful library and I would like to use it as part of a bigger project. For that, I would like to be able to control the logging behaviour of the library in a more granular way:

Currently, the interface class has a debug parameter but this is not passed to the http attribute. This pull request is changing this behaviour so that the debug parameter is passed down consistently which allows better control for the logging behaviour the http class.

@@ -41,7 +41,7 @@ def __init__(self, username, password, http_session=None, debug=False):
else:
self.log.setLevel(logging.WARNING)

self.http = Http(username=username, password=password, http_session=http_session)
Copy link
Author

Choose a reason for hiding this comment

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

The debug parameter is currently not passed to the Http instance.

Copy link
Owner

Choose a reason for hiding this comment

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

Maybe add another parameter debug_http to not spam logs, if you do not need the http logs?

Choose a reason for hiding this comment

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

Any updates on this? I mean there is a debug parameter now but it is not working.

@wmalgadey wmalgadey merged commit 66b1d9b into wmalgadey:master Dec 9, 2023
5 checks passed
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.

None yet

3 participants