Skip to content

Commit

Permalink
Changing logging approach in OrderAttributeResource2_5Test
Browse files Browse the repository at this point in the history
  • Loading branch information
slubwama committed Sep 10, 2023
1 parent 51e9927 commit fabd6ac
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
import org.openmrs.api.context.Context;
import org.openmrs.module.webservices.rest.web.v1_0.resource.RestTestConstants2_5;
import org.openmrs.module.webservices.rest.web.resource.impl.BaseDelegatingResourceTest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class OrderAttributeResource2_5Test extends BaseDelegatingResourceTest<OrderAttributeResource2_5, OrderAttribute> {
protected final Log log = LogFactory.getLog(this.getClass());

@Before
public void before() throws Exception {
Expand Down Expand Up @@ -53,7 +56,7 @@ public String getDisplayProperty() {
return "Dispensing Location: " + new SimpleDateFormat("yyyy-MM-dd").parse("2011-04-25");
}
catch (ParseException ex) {
ex.printStackTrace();
log.error(ex);
return null;
}
}
Expand Down

0 comments on commit fabd6ac

Please sign in to comment.