From f092d3e0b6ade28d060ad4c5f51bb4ed3d8d5add Mon Sep 17 00:00:00 2001 From: Malte Bauch <malte.bauch@h-da.de> Date: Wed, 18 Sep 2024 11:50:07 +0200 Subject: [PATCH] Additional logging for akms client --- goKMS/kms/akmsInterface/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goKMS/kms/akmsInterface/client/client.go b/goKMS/kms/akmsInterface/client/client.go index 703912a8..19a58beb 100644 --- a/goKMS/kms/akmsInterface/client/client.go +++ b/goKMS/kms/akmsInterface/client/client.go @@ -57,7 +57,7 @@ func (c *CkmsAkmsClient) SendKSAKeysToRequestingInstances(requestID string, proc return err } - // TODO: also log the response body if request failed + logrus.Infof("Attempting to send KSA post request to AKMS with URL: %s", c.url) resp, err := c.httpClient.Post(c.url, "application/json", bytes.NewBuffer(jsonData)) if err != nil { body, err2 := io.ReadAll(resp.Body) -- GitLab