Skip to content

Commit

Permalink
Be more verbose in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AstraLuma committed Oct 11, 2024
1 parent 4598430 commit 3131ebd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions s3proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,13 +530,13 @@ func (p resolved_proxy) GetHandler(w http.ResponseWriter, r *http.Request, fullP
break
} else {
logIt := true
if aerr, ok := err.(awserr.Error); ok {
// Getting no such key here could be rather common
// So only log a warning if we get any other type of error
if aerr.Code() != s3.ErrCodeNoSuchKey {
logIt = false
}
}
// if aerr, ok := err.(awserr.Error); ok {
// // Getting no such key here could be rather common
// // So only log a warning if we get any other type of error
// if aerr.Code() != s3.ErrCodeNoSuchKey {
// logIt = false
// }
// }
if logIt {
p.log.Warn("error when looking for index",
zap.String("bucket", p.Bucket),
Expand Down

0 comments on commit 3131ebd

Please sign in to comment.