Skip to content

Commit

Permalink
[MODORDERS-1169]. Add throwable exception to log
Browse files Browse the repository at this point in the history
  • Loading branch information
BKadirkhodjaev committed Aug 21, 2024
1 parent 0fca0a7 commit ef83a4d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io.vertx.core.Context;
import io.vertx.core.Future;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import one.util.streamex.EntryStream;
import one.util.streamex.StreamEx;
Expand Down Expand Up @@ -647,7 +648,7 @@ private Future<Boolean> createHoldingsForChangedLocations(Piece piece, String in
String msg = Optional.ofNullable(piece.getLocationId())
.map(pieceLocation -> "locationId: " + pieceLocation)
.orElse("holdingId: " + piece.getHoldingId());
logger.error("createHoldingsForChangedLocations:: Cannot create holding for specified piece, {}", msg);
logger.error("createHoldingsForChangedLocations:: Cannot create holding for specified piece, {}", msg, t);
addError(piece.getPoLineId(), piece.getId(), ITEM_UPDATE_FAILED.toError());
});
}
Expand Down

0 comments on commit ef83a4d

Please sign in to comment.