Skip to content

When does SemanticLogger call SemanticLogger.close? #214

Answered by reidmorrison
aniruddhb asked this question in Q&A
Discussion options

You must be logged in to vote

If I recall correctly the reason it calls flush and not close is because of test frameworks. They register tests as part of the at_exit logic, so the close was being called before the tests had a chance to run, preventing any logging from being processed. Give it a try locally. Will be happy to change it back to .close instead of .flush if we can make it also work during tests.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by reidmorrison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants