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 telegraf swallowing panics in --test mode #2354

Merged
merged 1 commit into from
Feb 2, 2017
Merged

Fix telegraf swallowing panics in --test mode #2354

merged 1 commit into from
Feb 2, 2017

Conversation

sparrc
Copy link
Contributor

@sparrc sparrc commented Feb 1, 2017

Required for all PRs:

  • CHANGELOG.md updated (we recommend not updating this until the PR has been approved by a maintainer)
  • Sign CLA (if not already signed)
  • README.md updated (if adding a new plugin)

closes #2341

@sparrc
Copy link
Contributor Author

sparrc commented Feb 1, 2017

@butitsnotme can you review this? In #1543 you said that this defer was necessary because otherwise telegraf wouldn't exit properly.

I haven't been able to reproduce that and I can't seem to figure out why it wouldn't exit correctly in the first place.

Do you have any thoughts on that? is it Windows-specific?

@sparrc
Copy link
Contributor Author

sparrc commented Feb 1, 2017

nevermind, scratch that, I can reproduce.

I'll have to figure out a solution for this...

@sparrc sparrc changed the title Fix telegraf swallowing panicks in --test mode Fix telegraf swallowing panics in --test mode Feb 1, 2017
@sparrc sparrc force-pushed the cs2341 branch 2 times, most recently from 2c7d3fe to 3da1731 Compare February 2, 2017 11:16
this defer function was causing telegraf to call os.Exit(0) instead of
panicking when it was supposed to.

closes #2341
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.

telegraf swallowing panics
2 participants