fix: remove unnecessary logs for client conn errors (#16261)

This commit is contained in:
Harshavardhana
2022-12-15 08:25:05 -08:00
committed by GitHub
parent 5d7e8f79ed
commit 2433698372
6 changed files with 19 additions and 21 deletions

View File

@@ -151,9 +151,6 @@ func validateAdminSignature(ctx context.Context, r *http.Request, region string)
s3Err = isReqAuthenticated(ctx, r, region, serviceS3)
}
if s3Err != ErrNone {
reqInfo := (&logger.ReqInfo{}).AppendTags("requestHeaders", dumpRequest(r))
ctx := logger.SetReqInfo(ctx, reqInfo)
logger.LogIf(ctx, errors.New(getAPIError(s3Err).Description), logger.Application)
return cred, nil, owner, s3Err
}