Skip to content

Commit

Permalink
No need to log this
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwoberts committed Sep 26, 2024
1 parent c2ba9fd commit 09a10a0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/services/userlist/userlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ import (
"strconv"

"github.com/getfider/fider/app/models/cmd"
"github.com/getfider/fider/app/models/dto"
"github.com/getfider/fider/app/models/enum"
"github.com/getfider/fider/app/models/query"
"github.com/getfider/fider/app/pkg/bus"
"github.com/getfider/fider/app/pkg/env"
"github.com/getfider/fider/app/pkg/errors"
"github.com/getfider/fider/app/pkg/log"
)

// Company represents a company in UserList.com. It contains information about the company,
Expand Down Expand Up @@ -221,10 +219,6 @@ func pushUserListUpdate(obj interface{}, ctx context.Context) error {
return errors.Wrap(err, "Failed to send userlist update")
}

log.Infof(ctx, "Userlist HTTP post complete with status @{status}. Header was @{ResponseHeader}. Body was @{ResponseBody}", dto.Props{
"status": req.ResponseStatusCode, "ResponseHeader": req.ResponseHeader, "ResponseBody": string(req.ResponseBody),
})

if req.ResponseStatusCode >= 300 {
return errors.New("unexpected status code while updating userlist: %d", req.ResponseStatusCode)
}
Expand Down

0 comments on commit 09a10a0

Please sign in to comment.