[PATCH v3 1/2] sandbox: log: Avoid build error with !CONFIG_LOG