Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Close() for StanLogger to allow resources to be released #641

Merged
merged 1 commit into from Aug 16, 2018

Conversation

kozlovic
Copy link
Member

If the logger is file based, allow file to be closed for proper
cleanup. This was found when running tests on Windows where test
log could not be cleaned-up because the file was still opened.

Also added some missing defers that would also cause some files
to fail to be deleted on test exit.

Signed-off-by: Ivan Kozlovic ivan@synadia.com

If the logger is file based, allow file to be closed for proper
cleanup. This was found when running tests on Windows where test
log could not be cleaned-up because the file was still opened.

Also added some missing defers that would also cause some files
to fail to be deleted on test exit.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 91.818% when pulling 6784751 on add_logger_close into ae730c5 on master.

@kozlovic kozlovic merged commit 6e6196c into master Aug 16, 2018
@kozlovic kozlovic deleted the add_logger_close branch August 16, 2018 19:43
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.

None yet

2 participants