Skip to content

Commit 435046c

Browse files
committed
chore: Update logging in marshalRequest function for Microsoft Graph integration
1 parent 8b226f2 commit 435046c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

msgraph/msgraphintegration/marshall.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ func (m *Integration) marshalRequest(body interface{}, method string, endpoint s
4545

4646
// Log the JSON request body for POST, PUT, or PATCH methods
4747
if method == "POST" || method == "PUT" || method == "PATCH" {
48-
m.Logger.Debug("JSON Request Body", zap.String("Body", string(data)))
48+
m.Logger.Debug("JSON Request Body", zap.String("Body", string(data)), zap.String("Endpoint", endpoint))
49+
} else {
50+
m.Logger.Debug("Request Endpoint", zap.String("Endpoint", endpoint))
4951
}
5052

5153
return data, nil

0 commit comments

Comments
 (0)