Skip to content

Commit 3adb64d

Browse files
authored
fix monitor log print too much (#261)
1 parent 9fc0583 commit 3adb64d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/alipay/oceanbase/rpc/util/MonitorUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private static String logMessage(String traceId, String database, String tableNa
187187
// for each sub batch opreation
188188
private static void logMessage0(final ObPayload payload, String database, String tableName, String methodName, String endpoint, ObTableBatchOperation subOperations,
189189
long partId, int resultSize, long executeTime, long slowQueryMonitorThreshold) {
190-
if (slowQueryMonitorThreshold >= 0 && executeTime < slowQueryMonitorThreshold) {
190+
if (slowQueryMonitorThreshold < 0 || executeTime < slowQueryMonitorThreshold) {
191191
return;
192192
}
193193
String traceId = formatTraceMessage(payload);

0 commit comments

Comments
 (0)