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 error handling output for userscripts collector #536

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

keen99
Copy link
Contributor

@keen99 keen99 commented Sep 22, 2016

another fix for error cases:

before: if stderr is returned, but no stdout, we bail out before we report the stderr content - throwing away the error message that may only be reproducible in the conditions of the collector.

after: if stderr is returned, log it regardless of if we bail. log it as warning, not error, since it's non-blocking.

also removed "skipping" from the proc.returncode - we dont actually bail unless there's no stdout, regardless of return code, so dont tell the user we are.

another fix for error cases:  

before: if stderr is returned, but no stdout, we bail out before we report the stderr content - throwing away the error message that may only be reproducible in the conditions of the collector.

after:  if stderr is returned, log it regardless of if we bail.   log it as warning, not error, since it's non-blocking.
 
also removed "skipping" from the proc.returncode - we dont actually bail unless there's no stdout, regardless of return code, so dont tell the user we are.
also update log message for the no stdout case:  make it error, not info, since we bail - and log that we skip.
shawnbutts added a commit to Netuitive/netuitive-diamond that referenced this pull request Sep 23, 2016
@josegonzalez
Copy link
Member

Seems like there are some pep8 test fails here, mind fixing those up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants