Skip to content

Conversation

sungkkim
Copy link
Contributor

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.

@@ -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,
Copy link

@wbingli wbingli Oct 22, 2020

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);
}

Copy link

@wbingli wbingli left a comment

Choose a reason for hiding this comment

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

Thanks

@sungkkim sungkkim merged commit 4bdae6e into aws-cloudformation:master Oct 23, 2020
wbingli pushed a commit to wbingli/cloudformation-cli-java-plugin that referenced this pull request Dec 5, 2020
wbingli pushed a commit to wbingli/cloudformation-cli-java-plugin that referenced this pull request Dec 5, 2020
wbingli pushed a commit that referenced this pull request Dec 5, 2020
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