Skip to content

Commit 4876184

Browse files
committed
Improve logging
1 parent 71d9581 commit 4876184

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/observer/JobStatusObserver.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,8 @@ protected void observeJobManagerExceptions(FlinkResourceContext<R> ctx) {
200200
emitJobManagerExceptionEvent(ctx, exception, exceptionTime, maxStackTraceLines);
201201
}
202202

203-
if (count < maxEvents && exceptionHistory.isTruncated()) {
204-
LOG.warn(
205-
"Job exception history is truncated for jobId '{}'. Some exceptions may be missing.",
206-
jobId);
203+
if (count > maxEvents) {
204+
LOG.warn("Job exception history is truncated. Some exceptions may be missing.");
207205
}
208206

209207
cacheEntry.setJobId(currentJobId);

0 commit comments

Comments
 (0)