diff --git a/client.go b/client.go index 775a8a3..da57f82 100644 --- a/client.go +++ b/client.go @@ -126,7 +126,7 @@ func (c *Client) Enroll(ctx context.Context, logger logrus.FieldLogger, code str // Log the request ID returned from the server reqID := resp.Header.Get("X-Request-ID") l := logger.WithFields(logrus.Fields{"statusCode": resp.StatusCode, "reqID": reqID}) - if resp.StatusCode != http.StatusOK { + if resp.StatusCode == http.StatusOK { l.Info("Enrollment request returned success code") } else { l.Error("Enrollment request returned error code")