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

Fix Close implementation of plugins #305

Merged

Conversation

mlallaouret
Copy link
Contributor

This PR fixes the implementation of Close functions in the plugins implementing it.
Indeed they do not declare error as return type and so, were not called at the end of the program when receiving the SIGTERM signal.

Indeed they do not declare error as return type and so, were not called at the end of the program
@@ -228,7 +228,7 @@ func (o *FileOutput) String() string {
return "File output: " + o.file.Name()
}

func (o *FileOutput) Close() {
func (o *FileOutput) Close() error {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method FileOutput.Close should have comment or be unexported

@buger
Copy link
Owner

buger commented Jun 16, 2016

Oh, good catch!

Thank you!

@buger buger merged commit d0e1858 into buger:master Jun 16, 2016
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.

3 participants