srowen commented on a change in pull request #34965:
URL: https://github.com/apache/spark/pull/34965#discussion_r774585062
##########
File path: core/src/test/scala/org/apache/spark/SparkFunSuite.scala
##########
@@ -272,14 +268,15 @@ abstract class SparkFunSuite
val loggingEvents = new ArrayBuffer[LogEvent]()
private var _threshold: Level = Level.INFO
- override def append(loggingEvent: LogEvent): Unit = {
- if (loggingEvent.getLevel.isMoreSpecificThan(_threshold)) {
+ override def append(loggingEvent: LogEvent): Unit =
loggingEvent.synchronized {
+ val copy_event = loggingEvent.toImmutable
Review comment:
Nit: copyEvent, but doesn't matter
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]