Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hilpitome committed Mar 8, 2023
1 parent 8d879be commit 17942f6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/org/opensrp/web/rest/RestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -124,11 +124,11 @@ public static <T> void verifyRequiredProperties(List<String> 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);
}
}
}
Expand Down

0 comments on commit 17942f6

Please sign in to comment.