Skip to content

Commit 2f47c30

Browse files
committed
Fix log
1 parent b4f56a0 commit 2f47c30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/scala/org/apache/spark/scheduler/LiveListenerBus.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ private[spark] class LiveListenerBus(val sparkContext: SparkContext) extends Spa
141141
// And if another thread is increasing droppedEventsCounter, "compareAndSet" will fail and
142142
// then that thread will update it.
143143
if (droppedEventsCounter.compareAndSet(droppedEvents, 0)) {
144+
val prevLastReportTimestamp = lastReportTimestamp
144145
lastReportTimestamp = System.currentTimeMillis()
145-
logWarning(s"Dropped $droppedEvents SparkListenerEvents")
146+
logWarning(s"Dropped $droppedEvents SparkListenerEvents since " +
147+
new java.util.Date(prevLastReportTimestamp))
146148
}
147149
}
148150
}

0 commit comments

Comments
 (0)