Skip to content

Commit

Permalink
removed logging of values retrieved from pms, asm
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotoffia committed Oct 30, 2020
1 parent 5dff64d commit 5be5315
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/asm/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (p *Serializer) createAwsSecret(client *secretsmanager.Client,
}

log.Debug().Str("svc", p.service).Str("method", "createAwsSecret").
Msgf("created secret %s value %s", *secret.Name, *secret.SecretString)
Msgf("created secret %s value ***", *secret.Name)

return resp.CreateSecretOutput, nil

Expand All @@ -110,7 +110,7 @@ func (p *Serializer) updateAwsSecret(client *secretsmanager.Client,
}

log.Debug().Str("svc", p.service).Str("method", "updateAwsSecret").
Msgf("updated secret %s value %s", *secret.Name, *secret.SecretString)
Msgf("updated secret %s value ***", *secret.Name)

return resp.UpdateSecretOutput, nil

Expand Down
3 changes: 1 addition & 2 deletions internal/asm/serializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ func (p *Serializer) Get(node *parser.StructNode,
}
}
} else {
log.Debug().Str("svc", p.service).Str("method", "Get").
Msgf("field %s = got %s", n.FqName, *result.SecretString)
log.Debug().Str("svc", p.service).Str("method", "Get").Msgf("field %s", n.FqName)

mprms[n.FqName] = result
}
Expand Down
2 changes: 1 addition & 1 deletion internal/common/serializerutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func setStructIntValue(rv reflect.Value, name string, value string) error {
// SetStructValueFromString sets a field in a struct to the specified value.
func SetStructValueFromString(node *parser.StructNode, name string, value string) error {

log.Debug().Msgf("setting: %s (%s) val: %s", node.FqName, name, value)
log.Debug().Msgf("setting: %s (%s)", node.FqName, name)

switch node.Value.Kind() {
case reflect.Struct:
Expand Down

0 comments on commit 5be5315

Please sign in to comment.