Skip to content

Commit

Permalink
Improve dead letter log (#527)
Browse files Browse the repository at this point in the history
* Improve deadletter log

* TE warn to debug
  • Loading branch information
Andyz26 authored Aug 16, 2023
1 parent 53b84f1 commit cafbe81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ public Receive createReceive() {
.match(DeadLetter.class, msg -> {
this.numDeadLetterMsgs.increment();
String m = toString(msg.message());
log.error("Dead Letter from {} to {} msg:{}", msg.sender(), msg.recipient(),
m.substring(0, Math.min(250, m.length() - 1)));
log.error("Dead Letter from {} to {} msg type: {} payload: {}",
msg.sender(),
msg.recipient(),
msg.message().getClass().getSimpleName(),
m.substring(0, Math.min(250, m.length() - 1)));
})
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ private void onCacheJobArtifactsOnTaskExecutorRequest(CacheJobArtifactsOnTaskExe
}
}
else {
log.warn("no valid TE state for CacheJobArtifactsOnTaskExecutorRequest: {}", request);
log.debug("no valid TE state for CacheJobArtifactsOnTaskExecutorRequest: {}", request);
}
}

Expand Down

0 comments on commit cafbe81

Please sign in to comment.