def log_hide(message):
    """Hide security sensitive information from log messages"""
    if type(message) != dict:
        return message

    if "token" in message:
        message["token"] = "xxxxxxxx-xxxx-xx"
    if "AccessToken" in message:
        message["AccessToken"] = "xxxxxxxx-xxxx-xx"

    return message