diff --git a/src/main/java/org/folio/edge/patron/PatronHandler.java b/src/main/java/org/folio/edge/patron/PatronHandler.java index e6c85d8..6efbeae 100644 --- a/src/main/java/org/folio/edge/patron/PatronHandler.java +++ b/src/main/java/org/folio/edge/patron/PatronHandler.java @@ -254,9 +254,10 @@ public void handleGetAllowedServicePoints(RoutingContext ctx) { } public void handleGetPatronRegistrationStatus(RoutingContext ctx) { + logger.debug("handleGetPatronRegistrationStatus:: Fetching patron registration"); String emailId = ctx.request().getParam(PARAM_EMAIL_ID); - logger.debug("handleGetPatronRegistrationStatus:: Fetching patron details by emailId {}", emailId); if(StringUtils.isNullOrEmpty(emailId)) { + logger.warn("handleGetPatronRegistrationStatus:: Missing or empty emailId"); ctx.response() .setStatusCode(400) .putHeader(HttpHeaders.CONTENT_TYPE, APPLICATION_JSON) diff --git a/src/test/java/org/folio/edge/patron/utils/PatronMockOkapi.java b/src/test/java/org/folio/edge/patron/utils/PatronMockOkapi.java index 1a67012..2eea6e5 100644 --- a/src/test/java/org/folio/edge/patron/utils/PatronMockOkapi.java +++ b/src/test/java/org/folio/edge/patron/utils/PatronMockOkapi.java @@ -23,13 +23,10 @@ import java.nio.charset.StandardCharsets; import java.text.ParseException; import java.text.SimpleDateFormat; -import java.time.ZonedDateTime; import java.util.ArrayList; import java.util.Currency; import java.util.Date; import java.util.List; -import java.util.Map; -import java.util.Set; import java.util.UUID; import org.apache.commons.lang3.StringUtils; import org.apache.logging.log4j.LogManager;