Info log output in version 4.7.1
#455 changed the queries_quota output from print() to logging (see #451). However, since this library is initialized when our Django application is initialized, the same irrelevant output is scattered in multiple places, like management command output, daily maintenance tasks, report emails, etc. Can we please change this to level DEBUG, so it's hidden by default?
Sounds reasonable. Feel free to send a pull request with your desired fix.
A pull request has been made, can we also get it reviewed and hopefully a fix released soon?
@wangela Would you able to take a look at the proposed PR with a fix?
In the meantime, fyi, you can also configure the log level for the package in your django application. Setting the handler log level should fix your issue:
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"handlers": {
"console": {
"class": "logging.StreamHandler",
},
},
"google_maps_services_python": {
...,
"level": "WARNING",
},
}
@sondrelg @wangela That's true, but it would also hide any future messages with an info level, and is not optimal. This issue's pull request is a trivial one-line change and has been open since 2022. I don't understand why it's such a problem to merge it.