-
Notifications
You must be signed in to change notification settings - Fork 159
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
Added request logging to ecs custom resource. #1154
Conversation
also ran `go fmt` modified: server/cloudformation/ecs.go
modified: pkg/cloudformation/customresources/customresources.go modified: server/cloudformation/ecs.go
modified: pkg/cloudformation/customresources/customresources.go modified: server/cloudformation/ecs.go
server/cloudformation/ecs.go
Outdated
@@ -95,6 +95,9 @@ func newECSServiceProvisioner(resource *ECSServiceResource) *provisioner { | |||
} | |||
|
|||
func (p *ECSServiceResource) Create(ctx context.Context, req customresources.Request) (string, interface{}, error) { | |||
// TODO: how to make this a debug log level? | |||
fmt.Printf("%+v\n", req) |
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.
fmt.Printf("%+v\n", req) | |
fmt.Printf("%+v\n", *req.PropagateTags) |
I think you need to do that. That'll print the actual string referenced by req.PropagateTags.
This looks like it works, but I think that there's an edge case where you pass a customresources reference but the struct is missing one or more fields. I think that'll be a nil pointer error. I'll take a look at that in the morning. I think this should unblock you testing, @russellballestrini. |
This reverts commit 7ab6b86.
This reverts commit 7ab6b86.
also ran
go fmt