mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-24 16:04:00 +08:00
[ISSUE #2538]Optimize log output when message trace saving fails
This commit is contained in:
@@ -370,7 +370,7 @@ public class AsyncTraceDispatcher implements TraceDispatcher {
|
||||
|
||||
@Override
|
||||
public void onException(Throwable e) {
|
||||
log.info("send trace data ,the traceData is " + data);
|
||||
log.error("send trace data failed, the traceData is {}", data, e);
|
||||
}
|
||||
};
|
||||
if (traceBrokerSet.isEmpty()) {
|
||||
@@ -398,7 +398,7 @@ public class AsyncTraceDispatcher implements TraceDispatcher {
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
log.info("send trace data,the traceData is" + data);
|
||||
log.error("send trace data failed, the traceData is {}", data, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user