Skip to content

Conversation

fhopf
Copy link

@fhopf fhopf commented Nov 27, 2015

When running the appender in production we noticed two more problems

  • a NullPointerException when Redis ran full that could only be resolved by restarting the application
  • another cause for OutOfMemoryErrror: allowing to accept too many LogEvents

This pull request fixes both. For the first fix a bit of refactoring was involved to make the code somehow testable.

Moved runnable to seperate class.
added mockito based unit test
Only logging stack trace when the exception message is not the same
Added option for limiting the amount of events buffered
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant