alexanderrevello commented on code in PR #781:
URL: https://github.com/apache/daffodil/pull/781#discussion_r872765027
##########
daffodil-tdml-lib/src/main/scala/org/apache/daffodil/tdml/TDMLAppender.scala:
##########
@@ -38,25 +38,32 @@ class TDMLAppender
import TDMLAppender._
override def append(event: LogEvent): Unit = {
- diagnostics = new LogDiagnostic(event.getMessage.getFormattedMessage)
+: diagnostics
+ checkForKey
+ diagnostics = diagnostics.updated(Thread.currentThread.getId,
diagnostics(Thread.currentThread.getId) :+ new
LogDiagnostic(event.getMessage.getFormattedMessage))
Review Comment:
its done by log4j so it is thread safe but I will add synchronized anyway
--
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]