diff --git a/src/main/java/org/opensrp/web/rest/RestUtils.java b/src/main/java/org/opensrp/web/rest/RestUtils.java index ad3fbbd23..510395a63 100644 --- a/src/main/java/org/opensrp/web/rest/RestUtils.java +++ b/src/main/java/org/opensrp/web/rest/RestUtils.java @@ -103,9 +103,9 @@ public static boolean getBooleanFilter(String filter, HttpServletRequest req) { return Boolean.parseBoolean(stringFilter); } - public static void main(String[] args) { - System.out.println(new DateTime("​1458932400000")); - } + //public static void main(String[] args) { + // System.out.println(new DateTime("​1458932400000")); + //} public static synchronized String setDateFilter(Date date) throws ParseException { return date == null ? null : SDF.format(date); @@ -124,11 +124,11 @@ public static void verifyRequiredProperties(List properties, T entit } } catch (IllegalArgumentException e) { - e.printStackTrace(); + logger.error(e); throw new RuntimeException("A required field " + p + " was not found in resource class"); } catch (IllegalAccessException e) { - e.printStackTrace(); + logger.error(e); } } }