Skip to content

Commit 17942f6

Browse files
committed
add logging
1 parent 8d879be commit 17942f6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/opensrp/web/rest/RestUtils.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ public static boolean getBooleanFilter(String filter, HttpServletRequest req) {
103103
return Boolean.parseBoolean(stringFilter);
104104
}
105105

106-
public static void main(String[] args) {
107-
System.out.println(new DateTime("​1458932400000"));
108-
}
106+
//public static void main(String[] args) {
107+
// System.out.println(new DateTime("​1458932400000"));
108+
//}
109109

110110
public static synchronized String setDateFilter(Date date) throws ParseException {
111111
return date == null ? null : SDF.format(date);
@@ -124,11 +124,11 @@ public static <T> void verifyRequiredProperties(List<String> properties, T entit
124124
}
125125
}
126126
catch (IllegalArgumentException e) {
127-
e.printStackTrace();
127+
logger.error(e);
128128
throw new RuntimeException("A required field " + p + " was not found in resource class");
129129
}
130130
catch (IllegalAccessException e) {
131-
e.printStackTrace();
131+
logger.error(e);
132132
}
133133
}
134134
}

0 commit comments

Comments
 (0)