Skip to content

Commit

Permalink
[MODAUD-174] - Improved log.error message
Browse files Browse the repository at this point in the history
  • Loading branch information
azizbekxm committed Nov 15, 2023
1 parent 1f00735 commit fda19eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public OrderAuditEventsServiceImpl(OrderEventsDao orderEvenDao) {

@Override
public Future<RowSet<Row>> 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());
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public OrderLineAuditEventsServiceImpl(OrderLineEventsDao orderLineEventsDao) {

@Override
public Future<RowSet<Row>> 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());
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public Future<RowSet<Row>> 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());
});
}
Expand Down

0 comments on commit fda19eb

Please sign in to comment.