• Jérome Perrin's avatar
    ERP5Type/Utils: configure warnings in zopewsgi · 91cc6c4e
    Jérome Perrin authored
    This was too late to enable all warnings, many modules were already
    imported and already triggered lots of deprecation warnings that were
    ignored.
    
    Also, we no longer need to patch warnings.showwarning because we use
    logging.captureWarnings(True) in runwsgi. As a result, the log events
    will be slightly different, because logging's way of logging warnings
    is a bit different.
    
    test_warnings_redirected_to_event_log no longer make sense because we
    only use logging.captureWarnings() in runwsgi, while running tests we
    want warnings to be displayed on the console so that developer see them.
    91cc6c4e
test.erp5.testERP5PDFMerge.py 3.26 KB