-
Notifications
You must be signed in to change notification settings - Fork 120
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
Use non-root python logger #194
Comments
For anyone else running into this issue I have gotten around it by wrapping gin.parse_config_files_and_bindings with a
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My code does something akin to the following.
I am now using
gin
from within code which is itself now packages as a pip-installable python package. Ever since executing this change, I now see logging output like the following:I would like to mute all gin-related logging, but it appears gin is using the root logging.info() rather than
logger = logging.getLogger(__name__); logging.info(...)
as is recommended.Example:
gin-config/gin/resource_reader.py
Line 55 in ddd964c
Switching to the recommended getLogger(name) would allow me to
logging.getLogger("gin").setLevel(logging.CRITICAL)
to ignore these messages.I could likely PR this if theres any chance of it being accepted.
The text was updated successfully, but these errors were encountered: