jt2594838 commented on code in PR #16296:
URL: https://github.com/apache/iotdb/pull/16296#discussion_r2307081810
##########
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/agent/task/PipeTaskAgent.java:
##########
@@ -395,7 +396,8 @@ protected List<TPushPipeMetaRespExceptionMessage>
handlePipeMetaChangesInternal(
String.format(
"Failed to handle pipe meta changes for %s, because %s",
pipeName, e.getMessage());
- LOGGER.warn("Failed to handle pipe meta changes for {}", pipeName,
e);
+ PipeLogger.log(
+ LOGGER::warn, "Failed to handle pipe meta changes for %s\n%s",
pipeName, e);
Review Comment:
Notice that Log4j processes exceptions differently from String.format() .
Especially that String.format() will not print the stack.


--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]