Skip to content

Commit

Permalink
Log the body
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Sep 24, 2023
1 parent 1b60e6d commit 6e38e05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/pkg/services/integration_3cx_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,13 @@ func (service *Integration3CXService) sendNotification(ctx context.Context, even

ctxLogger.Info(
fmt.Sprintf(
"sent [3cx] webhook to url [%s] for event [%s] with ID [%s] and response [%s] and code [%d]",
"sent [3cx] webhook to url [%s] for event [%s] with ID [%s] and response [%s] and code [%d] and payload [%s]",
integration.WebhookURL,
event.Type(),
event.ID(),
response.Status,
response.StatusCode,
string(body),
),
)
}
Expand Down

0 comments on commit 6e38e05

Please sign in to comment.