mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-04 18:14:24 +02:00
always pass a cluster name as a logger field
This commit is contained in:
@@ -51,7 +51,7 @@ type API struct {
|
||||
}
|
||||
|
||||
// NewTeamsAPI creates an object to query the team API.
|
||||
func NewTeamsAPI(url string, log *logrus.Logger) *API {
|
||||
func NewTeamsAPI(url string, log *logrus.Entry) *API {
|
||||
t := API{
|
||||
url: strings.TrimRight(url, "/"),
|
||||
httpClient: &http.Client{},
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
logger = logrus.New()
|
||||
logger = logrus.New().WithField("pkg", "teamsapi")
|
||||
token = "ec45b1cfbe7100c6315d183a3eb6cec0M2U1LWJkMzEtZDgzNzNmZGQyNGM3IiwiYXV0aF90aW1lIjoxNDkzNzMwNzQ1LCJpc3MiOiJodHRwcz"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user