def excepthook(type_, value, traceback):
    root_logger.exception('Unhandled exception', exc_info=(type_, value, traceback))
    if (not log_stderr):
        sys.__excepthook__(type_, value, traceback)
def excepthook(type_, value, traceback):
    root_logger.exception('Unhandled exception', exc_info=(type_, value, traceback))
    if (not log_stderr):
        sys.__excepthook__(type_, value, traceback)