Skip to content
Snippets Groups Projects
Verified Commit f092d3e0 authored by Malte Bauch's avatar Malte Bauch
Browse files

Additional logging for akms client

parent b51659e8
No related branches found
No related tags found
1 merge request!211Add a seperate AKMS config option
Pipeline #223937 passed
...@@ -57,7 +57,7 @@ func (c *CkmsAkmsClient) SendKSAKeysToRequestingInstances(requestID string, proc ...@@ -57,7 +57,7 @@ func (c *CkmsAkmsClient) SendKSAKeysToRequestingInstances(requestID string, proc
return err 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)) resp, err := c.httpClient.Post(c.url, "application/json", bytes.NewBuffer(jsonData))
if err != nil { if err != nil {
body, err2 := io.ReadAll(resp.Body) body, err2 := io.ReadAll(resp.Body)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment