Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only set log level for the root logger
Before this change we called `setLevel` on each logger with level set to INFO. This meant that it was not possible to change log level for all child modules by doing something like `logging.getLogger('trino').setLevel(logging.DEBUG)` because the child loggers had explicit levels set already. It instead required us to change log levels for each module (`trino.client`, `trino.dbapi`, `trino.auth` etc.) separately. After this change only the root logger `trino` has a default level set. Other child loggers inherit from it. So now the default log level for all modules can be changed by doing `logging.getLogger('trino').setLevel(logging.DEBUG)` for example.
- Loading branch information