Skip to content

Commit

Permalink
If create fails don't panic
Browse files Browse the repository at this point in the history
  • Loading branch information
loganintech committed Sep 13, 2024
1 parent 88f4be1 commit aa58d1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/connector/client/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,13 @@ func (c *SalesforceClient) CreateObject(
}
created = created.Create()

debugFields := []zap.Field{}
if created != nil {
debugFields = append(debugFields, zap.String("created.ID()", created.ID()))
}
logger.Debug(
"Called Create()",
zap.String("created.ID()", created.ID()),
debugFields...,
)

ratelimitData := c.salesforceTransport.rateLimit
Expand Down

0 comments on commit aa58d1f

Please sign in to comment.