airbyte-cdk/python/airbyte_cdk/logger.py
def init_unhandled_exception_output_filtering(logger: logging.Logger) -> None:
    """
    Make sure unhandled exceptions are not printed to the console without passing through the Airbyte logger and having
    secrets removed.
    """

    def hook_fn(exception_type, exception_value, traceback_):
        # For developer ergonomics, we want to see the stack trace in the logs when we do a ctrl-c
        if issubclass(exception_type, KeyboardInterrupt):
            sys.__excepthook__(exception_type, exception_value, traceback_)
        else:
            logger.critical(exception_value, exc_info=exception_value)

    sys.excepthook = hook_fn

    Make sure unhandled exceptions are not printed to the console without passing through the Airbyte logger and having
    secrets removed.
    
Make sure unhandled exceptions are not printed to the console without passing through the Airbyte logger and having
secrets removed.
Make sure unhandled exceptions are not printed to the console without passing through the Airbyte logger and having secrets removed .
def init_unhandled_exception_output_filtering(logger: logging.Logger) -> None:
    def hook_fn(exception_type, exception_value, traceback_):
        if issubclass(exception_type, KeyboardInterrupt):
            sys.__excepthook__(exception_type, exception_value, traceback_)
        else:
            logger.critical(exception_value, exc_info=exception_value)
    sys.excepthook = hook_fn
def init_unhandled_exception_output_filtering ( logger : logging . Logger ) -> None : def hook_fn ( exception_type , exception_value , traceback_ ) : if issubclass ( exception_type , KeyboardInterrupt ) : sys . __excepthook__ ( exception_type , exception_value , traceback_ ) else : logger . critical ( exception_value , exc_info = exception_value ) sys . excepthook = hook_fn
Make sure unhandled exceptions are not printed to the console without passing through the Airbyte logger and having
secrets removed.
Make sure unhandled exceptions are not printed to the console without passing through the Airbyte logger and having secrets removed .
"""
    Make sure unhandled exceptions are not printed to the console without passing through the Airbyte logger and having
    secrets removed.
    """ # For developer ergonomics, we want to see the stack trace in the logs when we do a ctrl-c
logger
logging.Logger