replace SFA_API_DEBUG (bool) with SFA_API_LOGLEVEL (int)