• Michael Hanselmann's avatar
    utils.SetupLogging: Remove previously setup handlers · 6346a9e5
    Michael Hanselmann authored
    If a logging function is called before the logging module is setup
    using utils.SetupLogging, it calls logging.basicConfig, which adds
    a StreamHandler, on its own. If we leave it in, all log output will
    be printed twice on stderr. This patch makes sure to remove all
    handlers before adding our own.
    
    Reviewed-by: iustinp
    6346a9e5
utils.py 47.5 KB