diff --git a/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java b/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java index 6f025eed..dc4b7427 100644 --- a/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java +++ b/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java @@ -21,8 +21,6 @@ public BeekeeperHistoryService(BeekeeperHistoryRepository beekeeperHistoryReposi } public void saveHistory(HousekeepingEntity housekeepingEntity, HousekeepingStatus status) { - String eventDetails = housekeepingEntity.toString(); - BeekeeperHistory event = BeekeeperHistory.builder() .id(housekeepingEntity.getId()) .eventTimestamp(LocalDateTime.now()) @@ -30,7 +28,7 @@ public void saveHistory(HousekeepingEntity housekeepingEntity, HousekeepingStatu .tableName(housekeepingEntity.getTableName()) .lifecycleType(housekeepingEntity.getLifecycleType()) .housekeepingStatus(status.name()) - .eventDetails(eventDetails) + .eventDetails(housekeepingEntity.toString()) .build(); log.info("Saving activity in Beekeeper History table; {}", event);