Skip to content
Permalink
Browse files
Overriding notification occurred time to be more accurate
  • Loading branch information
DImuthuUpe committed Sep 9, 2021
1 parent e665320 commit 1d4d4320e4cb67676fd9cdae404ec5176367afb6
Showing 1 changed file with 1 addition and 0 deletions.
@@ -25,6 +25,7 @@ public byte[] serialize(String s, NotificationEvent notificationEvent) {

try {
Gson gson = new Gson();
notificationEvent.setOccuredTime(System.currentTimeMillis());
return gson.toJson(notificationEvent).getBytes(StandardCharsets.UTF_8);
} catch (Exception e) {
LOGGER.error("Failed to serialize message {}. So returning null", s, e);

0 comments on commit 1d4d432

Please sign in to comment.