diff --git a/mod-audit-server/src/main/java/org/folio/services/acquisition/impl/OrderAuditEventsServiceImpl.java b/mod-audit-server/src/main/java/org/folio/services/acquisition/impl/OrderAuditEventsServiceImpl.java index 511e339..5f25482 100644 --- a/mod-audit-server/src/main/java/org/folio/services/acquisition/impl/OrderAuditEventsServiceImpl.java +++ b/mod-audit-server/src/main/java/org/folio/services/acquisition/impl/OrderAuditEventsServiceImpl.java @@ -26,10 +26,10 @@ public OrderAuditEventsServiceImpl(OrderEventsDao orderEvenDao) { @Override public Future> saveOrderAuditEvent(OrderAuditEvent orderAuditEvent, String tenantId) { - LOGGER.debug("saveOrderAuditEvent:: Saving order audit event with Id={} for tenantId={}", orderAuditEvent.getId(), tenantId); + LOGGER.debug("saveOrderAuditEvent:: Saving order audit event with orderId={} for tenantId={}", orderAuditEvent.getOrderId(), tenantId); return orderEventsDao.save(orderAuditEvent, tenantId) .recover(throwable -> { - LOGGER.error("handleFailures:: Handling Failures with Id : {}", orderAuditEvent.getOrderId()); + LOGGER.error("handleFailures:: Could not save order audit event for Order id: {} in tenantId: {}", orderAuditEvent.getOrderId(), tenantId); return handleFailures(throwable, orderAuditEvent.getId()); }); } diff --git a/mod-audit-server/src/main/java/org/folio/services/acquisition/impl/OrderLineAuditEventsServiceImpl.java b/mod-audit-server/src/main/java/org/folio/services/acquisition/impl/OrderLineAuditEventsServiceImpl.java index 0c4c0cb..0e3d299 100644 --- a/mod-audit-server/src/main/java/org/folio/services/acquisition/impl/OrderLineAuditEventsServiceImpl.java +++ b/mod-audit-server/src/main/java/org/folio/services/acquisition/impl/OrderLineAuditEventsServiceImpl.java @@ -26,10 +26,10 @@ public OrderLineAuditEventsServiceImpl(OrderLineEventsDao orderLineEventsDao) { @Override public Future> saveOrderLineAuditEvent(OrderLineAuditEvent orderLineAuditEvent, String tenantId) { - LOGGER.debug("saveOrderLineAuditEvent:: Saving order line audit event with tenant Id : {}", tenantId); + LOGGER.debug("saveOrderLineAuditEvent:: Saving order line audit event with id: {} in tenant Id : {}", orderLineAuditEvent.getId(), tenantId); return orderLineEventsDao.save(orderLineAuditEvent, tenantId) .recover(throwable -> { - LOGGER.error("handleFailures:: Handling Failures with Id : {}", orderLineAuditEvent.getOrderLineId()); + LOGGER.error("handleFailures:: Could not save order audit event for OrderLine id: {} in tenantId: {}", orderLineAuditEvent.getOrderLineId(), tenantId); return handleFailures(throwable, orderLineAuditEvent.getId()); }); } diff --git a/mod-audit-server/src/main/java/org/folio/services/acquisition/impl/PieceAuditEventsServiceImpl.java b/mod-audit-server/src/main/java/org/folio/services/acquisition/impl/PieceAuditEventsServiceImpl.java index 6d90288..299b6e0 100644 --- a/mod-audit-server/src/main/java/org/folio/services/acquisition/impl/PieceAuditEventsServiceImpl.java +++ b/mod-audit-server/src/main/java/org/folio/services/acquisition/impl/PieceAuditEventsServiceImpl.java @@ -28,7 +28,7 @@ public Future> savePieceAuditEvent(PieceAuditEvent pieceAuditEvent, LOGGER.debug("savePieceAuditEvent:: Trying to save piece audit event with id={} for tenantId={}", pieceAuditEvent.getPieceId(), tenantId); return pieceEventsDao.save(pieceAuditEvent, tenantId) .recover(throwable -> { - LOGGER.error("handleFailures:: Handling Failures with Id : {}", pieceAuditEvent.getPieceId()); + LOGGER.error("handleFailures:: Could not save order audit event for Piece id: {} in tenantId: {}", pieceAuditEvent.getPieceId(), tenantId); return handleFailures(throwable, pieceAuditEvent.getId()); }); }