web-logback
web-logback copied to clipboard
OutputStreamAppender.start Called Twice
Using logback 1.1.7, I get the error message "No output stream set for the appender". By looking at web-logback's code, it appears that OutputStreamAppender.start()
is being invoked twice within BrowserConsoleAppender.start()
:
- A thread invokes
OutputStreamAppender.start()
but callssetOutputStream
first. - Main thread invokes
OutputStreamAppender.start()
but doesn't callsetOutputStream
.
Possibly due to a race condition, the main thread is invoking OutputStreamAppender.start()
before the secondary thread gets to call setOutputStream
. But, it seems that having two calls to OutputStreamAppender.start()
is unnecessary.