From f77c36ff4963c7c611f70b80d61c08028542267f Mon Sep 17 00:00:00 2001 From: mogoodrich Date: Wed, 2 Oct 2024 15:21:53 -0400 Subject: [PATCH] PROV-108: Add Rest Search Handler to support searching for providers by role --- .../rest/search/ProviderSearchHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/omod/src/main/java/org/openmrs/module/providermanagement/rest/search/ProviderSearchHandler.java b/omod/src/main/java/org/openmrs/module/providermanagement/rest/search/ProviderSearchHandler.java index 5374101..a7703b8 100644 --- a/omod/src/main/java/org/openmrs/module/providermanagement/rest/search/ProviderSearchHandler.java +++ b/omod/src/main/java/org/openmrs/module/providermanagement/rest/search/ProviderSearchHandler.java @@ -1,7 +1,5 @@ package org.openmrs.module.providermanagement.rest.search; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; import org.openmrs.api.context.Context; import org.openmrs.module.providermanagement.Provider; import org.openmrs.module.providermanagement.ProviderRole; @@ -15,6 +13,8 @@ import org.openmrs.module.webservices.rest.web.resource.impl.EmptySearchResult; import org.openmrs.module.webservices.rest.web.resource.impl.NeedsPaging; import org.openmrs.module.webservices.rest.web.response.ResponseException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import java.util.ArrayList; @@ -24,7 +24,7 @@ @Component public class ProviderSearchHandler implements SearchHandler { - protected Log log = LogFactory.getLog(getClass()); + private static final Logger log = LoggerFactory.getLogger(ProviderSearchHandler.class); protected final String PROVIDER_ROLES_PARAM = "providerRoles";