When running in synchronous mode, the LogWriter.addMessage() will attempt to send the batch on the invoking thread. However, this causes a race condition in the case of long-running initialization (made worse because we won't delay appender startup in 3.1.0).
Add a conditional test on isRunning at AbstractLogWriter line 233.
When running in synchronous mode, the
LogWriter.addMessage()
will attempt to send the batch on the invoking thread. However, this causes a race condition in the case of long-running initialization (made worse because we won't delay appender startup in 3.1.0).Add a conditional test on
isRunning
atAbstractLogWriter
line 233.