2 Commits

Author SHA1 Message Date
Francesco Renzi 33cbb7a1d9 log 2026-02-02 12:07:47 +01:00
Francesco Renzi 9cd2ceb86b static user agent 2026-02-02 11:00:34 +01:00
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -7,6 +7,7 @@ import (
"encoding/json"
"fmt"
"io"
"log/slog"
"maps"
"net/http"
"net/url"
@@ -835,6 +836,8 @@ func (c *Client) getActionsServiceAdminConnection(ctx context.Context, rt *regis
return nil, fmt.Errorf("failed to get actions service admin connection: %w", err)
}
slog.Info("got connection", *adminConnection.ActionsServiceURL, c.userAgent)
return adminConnection, nil
}
+1
View File
@@ -139,6 +139,7 @@ func (c *commonClient) setUserAgent() {
BuildCommitSHA: buildInfo.commitSHA,
})
c.userAgent = string(b)
slog.Info("user agent", "useragent", c.userAgent)
}
// HTTPOption defines a functional option for configuring the Client.