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

Allow to set different log level #432

Closed
wants to merge 1 commit into from

Conversation

guerremdq
Copy link
Member

Description

Allow users to set a different log level for trino client.

Credits go to @mb-m

@cla-bot cla-bot bot added the cla-signed label Dec 19, 2023
@john-bodley
Copy link
Contributor

@guerremdq I sense @hashhar or @mdesmet are likely better reviewers, so I added them and removed myself.

@john-bodley john-bodley requested review from mdesmet and hashhar and removed request for john-bodley December 20, 2023 23:09
@hashhar
Copy link
Member

hashhar commented Jan 18, 2024

This was addressed via #434.
You can now change log levels using the standard logging mechanism.

trino_logger = logging.getLogger("trino")
trino_logger.setLevel(DEBUG)

The loggers are named same as the module name. trino is the root logger.

@hashhar hashhar closed this Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants