Skip to content

Commit 6e38e05

Browse files
committed
Log the body
1 parent 1b60e6d commit 6e38e05

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

api/pkg/services/integration_3cx_service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,13 @@ func (service *Integration3CXService) sendNotification(ctx context.Context, even
105105

106106
ctxLogger.Info(
107107
fmt.Sprintf(
108-
"sent [3cx] webhook to url [%s] for event [%s] with ID [%s] and response [%s] and code [%d]",
108+
"sent [3cx] webhook to url [%s] for event [%s] with ID [%s] and response [%s] and code [%d] and payload [%s]",
109109
integration.WebhookURL,
110110
event.Type(),
111111
event.ID(),
112112
response.Status,
113113
response.StatusCode,
114+
string(body),
114115
),
115116
)
116117
}

0 commit comments

Comments
 (0)