def _trace_user_action(action_name, auth_user, client_user, client_token, description, async_process):
    ip_address = get_user_ip()
    try:
        auth_user = auth_user or client_user or "UNKNOWN"
        action = UserTracedAction("REST", action_name, ip_address, auth_user,
                                  anonymous_user_token=client_token,
                                  description=description)
        register_user_action(action, async_process=async_process)
    except Exception as e:
        logger.warning(e % "Error saving user trace: %s")
dataset/ETHPy150Open biicode/bii-server/rest/bottle_plugins/bii_user_trace_bottle_plugin.py/_trace_user_action/swapped operands of `%`