web-logback icon indicating copy to clipboard operation
web-logback copied to clipboard

OutputStreamAppender.start Called Twice

Open paulespinosa opened this issue 8 years ago • 0 comments

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():

  1. A thread invokes OutputStreamAppender.start() but calls setOutputStream first.
  2. Main thread invokes OutputStreamAppender.start() but doesn't call setOutputStream.

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.

BrowserConsoleAppender.start

paulespinosa avatar Nov 29 '16 08:11 paulespinosa