liyuheng55555 commented on code in PR #14137:
URL: https://github.com/apache/iotdb/pull/14137#discussion_r1851221325


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/consensus/statemachine/dataregion/DataRegionStateMachine.java:
##########
@@ -349,7 +349,7 @@ public DataSet read(IConsensusRequest request) {
       try {
         fragmentInstance = getFragmentInstance(request);
       } catch (IllegalArgumentException e) {
-        logger.error(e.getMessage());
+        logger.error(e.getMessage(), e);

Review Comment:
   Indeed, but log4j interface always asks for a String parameter. There are 
some cases where I can only provide the exception stack and no additional 
information. In such cases, how should the string be written? Maybe just an 
empty string?



-- 
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]

Reply via email to