def METHOD_NAME() -> str:
    """Formats the traceback of the current exception and returns a string without sensitive info.
    If secure mode is set, only include file names, line numbers and func names.
    Exception info only includes the type of the exception.
    If secure mode is not set, return the result of traceback.format_exc().
    Returns:
        A formatted string
    """
    if is_secure():
        return _format_exc_securely()
    else:
        return traceback.format_exc()