Skip to content

Commit 2aef4dc

Browse files
authored
Drop noisy logging (#919)
We've got a few sources of noisy logs; this PR cleans them up so that we aren't emitting hundreds of thousands of logs per hour. Signed-off-by: egibs <[email protected]>
1 parent 99de236 commit 2aef4dc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pkg/octosts/octosts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ type cacheTrustPolicyKey struct {
7171

7272
// Exchange implements pboidc.SecurityTokenServiceServer
7373
func (s *sts) Exchange(ctx context.Context, request *pboidc.ExchangeRequest) (_ *pboidc.RawToken, err error) {
74-
clog.FromContext(ctx).Infof("exchange request: %#v", request)
74+
clog.FromContext(ctx).Infof("exchange request: %#v", request.GetIdentity())
7575
e := Event{
7676
Scope: request.Scope,
7777
Identity: request.Identity,

pkg/webhook/webhook.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (e *Validator) ServeHTTP(w http.ResponseWriter, r *http.Request) {
8989
return
9090
}
9191
if err != nil {
92-
log.Errorf("error handling event %T: %v", event, err)
92+
log.Errorf("error handling event: %v", err)
9393
http.Error(w, err.Error(), http.StatusInternalServerError)
9494
return
9595
}
@@ -245,7 +245,6 @@ func (e *Validator) handlePush(ctx context.Context, event *github.PushEvent) (*g
245245
if err != nil {
246246
return nil, err
247247
}
248-
log.Infof("%+v\n%+v", resp, resp.Files)
249248
var files []string
250249
for _, file := range resp.Files {
251250
if ok, err := filepath.Match(".github/chainguard/*.sts.yaml", file.GetFilename()); err == nil && ok {

0 commit comments

Comments
 (0)