Skip to content

Commit

Permalink
* changing log levels to info temporarily (#116)
Browse files Browse the repository at this point in the history
* added context around error logs in ams controller

* add debug log around org id conversion

* add debug log around getting ams org id from cache

* changing log levels to info temporarily
  • Loading branch information
dagbay-rh authored Apr 19, 2023
1 parent 5bd532d commit 14089f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ams/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (c *Client) convertOrg(organizationId string) (string, error) {
item := c.cache.Get(organizationId)
if item != nil && !item.Expired() {
converted := item.Value().(string)
l.Log.WithFields(logrus.Fields{"ams_org_id": converted, "org_id": organizationId}).Debug("pull converted ams org id from cache")
l.Log.WithFields(logrus.Fields{"ams_org_id": converted, "org_id": organizationId}).Info("pull converted ams org id from cache")
return converted, nil
}

Expand All @@ -164,7 +164,7 @@ func (c *Client) convertOrg(organizationId string) (string, error) {
converted, err := listResp.Items().Get(0).ID(), nil
c.cache.Set(organizationId, converted, time.Minute*30)

l.Log.WithFields(logrus.Fields{"ams_org_id": converted, "org_id": organizationId}).Debug("converted org id to ams org ig")
l.Log.WithFields(logrus.Fields{"ams_org_id": converted, "org_id": organizationId}).Info("converted org id to ams org ig")

return converted, err
}
Expand Down

0 comments on commit 14089f7

Please sign in to comment.