deis / logger

In-memory log buffer used by Deis Workflow.
https://deis.com
MIT License
18 stars 15 forks source link

fix(adapter): Move the mutex lock when Writing messages #53

Closed jchauncey closed 8 years ago

jchauncey commented 8 years ago

There were some weird concurrency issues dealing with writing messages to the ring buffer. Specifically around determining whether we had seen a particular app before. This change moves the mutex lock to include that check.