Skip to content

Commit

Permalink
Logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Dec 12, 2024
1 parent 5059534 commit e483092
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,11 @@ public Boolean initialize() {

@Override
public void cancel() {
for(TransferStatus status : table.values()) {
for(Map.Entry<TransferItem, TransferStatus> entry : table.entrySet()) {
final TransferItem item = entry.getKey();
final TransferStatus status = entry.getValue();
for(TransferStatus segment : status.getSegments()) {
log.warn("Cancel segment {} of item {}", segment, item);
segment.setCanceled();
}
}
Expand Down

0 comments on commit e483092

Please sign in to comment.