Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add calling class name to mock log appender
Issue opensearch-project#10799 is caused by a stopped or unstarted appender still being present in the static logger state. I have not been able to find the improper usage of the log appender that would cause this error. To help debug, this commit adds the calling class name to the mock log appender. Any future occurrence should result in an error message with the class name that incorrected configured the logger. I've also added an override to the `stop()` method to force that callers use the close() method that properly cleans up the logger state as opposed to stopping the appender directly. Signed-off-by: Andrew Ross <andrross@amazon.com>
- Loading branch information