Lines Matching refs:logging
75 """Method to monkey patch into logging.Handler to replace handleError."""
76 # The same as the default logging.Handler.handleError but also prints
78 # about which call caused the logging error.
79 import logging
80 if logging.raiseExceptions:
83 logging.raiseExceptions = 0
89 sys.stderr.write('Future logging formatting exceptions disabled.\n')
93 # Hack out logging.py*
95 "logging.py*")
99 # Monkey patch our own handleError into the logging module's StreamHandler.
100 # A nicer way of doing this -might- be to have our own logging module define
103 import logging
104 assert callable(logging.Handler.handleError)
105 logging.Handler.handleError = _autotest_logging_handle_error