-
Notifications
You must be signed in to change notification settings - Fork 48
Log response payload for better troubleshooting #320
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
Conversation
@@ -372,7 +372,9 @@ public void processRequest(final InputStream inputStream, final OutputStream out | |||
|
|||
} | |||
|
|||
protected void writeResponse(final OutputStream outputStream, final ProgressEvent<ResourceT, CallbackT> response) | |||
protected void writeResponse(final OutputStream outputStream, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems a break change for the generated code. I would suggest you do following to keep backward compatible. And also update the code generate to use new method. In such way, it won't break old code if still use old plugin, but it just won't have additional logging data.
After updated the plugin tool, it can then benefit with new feature.
protected void writeResponse(final OutputStream outputStream,final ProgressEvent<ResourceT, CallbackT> response) {
this(outputStream, response, null);
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
…mation#320)" This reverts commit 4bdae6e.
…mation#320)" This reverts commit 4bdae6e.
Issue #, if available:
319
Description of changes:
This change adds logging of stack id, logical resource id and response payload to aid in troubleshooting.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.