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 invalid warning message #91

Merged
merged 1 commit into from
Nov 16, 2018
Merged

Conversation

dubee
Copy link
Member

@dubee dubee commented May 22, 2018

IsResponseResultSuccess() inaccurately generates a debug message indicating a failure.

Closes #89

@dubee dubee requested a review from mdeuser May 22, 2018 17:23
@dubee
Copy link
Member Author

dubee commented May 22, 2018

@mdeuser, can you review?

@mdeuser
Copy link
Contributor

mdeuser commented May 23, 2018

@dubee - is there a pg for this?

return errResp.Response.Success
}
Debug(DbgWarn, "IsResponseResultSuccess: failed to parse response result: %v\n", err)

Copy link
Contributor

Choose a reason for hiding this comment

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

let's see... the affected method is only looking for a whisk response (i.e. correct unmarshalled json with a "result" object).. the warning message is provided when that condition is not met. so maybe at this spot the message should be
Debug(DbgWarn, "IsResponseResultSuccess: http response did not contain a 'response' field; assuming successful response\n") ???

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