Skip to content

Commit

Permalink
Remove request logging which exposes model data (#134)
Browse files Browse the repository at this point in the history
* Remove request logging which exposes model data

In some cases the model may contain sensitive data which shouldn't be logged.

* log import no longer used
  • Loading branch information
stlava authored Mar 6, 2020
1 parent 7632341 commit 82d22a0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cfn/handler/request.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package handler

import (
"log"

"github.com/aws/aws-sdk-go/aws/session"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/cfnerr"
Expand Down Expand Up @@ -38,8 +36,6 @@ type Request struct {

// NewRequest returns a new Request based on the provided parameters
func NewRequest(id string, ctx map[string]interface{}, sess *session.Session, previousBody, body []byte) Request {
log.Printf("Creating request:\nPrev body: %s\nCurr body: %s", previousBody, body)

return Request{
LogicalResourceID: id,
CallbackContext: ctx,
Expand Down

0 comments on commit 82d22a0

Please sign in to comment.