External exception logging hook.

def log_exception(fn_name, exception, retry_count, **kwargs):
    """
    External exception logging hook.
    """
    _log_exception_hook(fn_name, exception, retry_count, **kwargs)