yahoo-oauth
yahoo-oauth copied to clipboard
Provide a way to enable or disable logging
(unless the propagate flag for a logger is set to a false value, at which point the passing to ancestor handlers stops).
I think you should look at the logger's propagate flag.
Thanks @LeMeteore , i will try this out and keep you posted :wink:
I think this isn't fully resolved. After a lot of testing, this is the only way I could disable yahoo-oauth messing with my own logger:
import logging
logger = logging.getLogger('my-own-logger')
logger.propagate = False
# Disable yahoo-oauth formatter and logger
logging.setLoggerClass(logging.Logger)
I think yahoo-oauth should't set its own logger class unless specified (maybe some option before importing?)
@underdpt hello. I will dig into that this weekend. Don't hesitate to propose a patch by the way.
@josuebrunel I've opened #61 to address this