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

@@ -96,9 +96,7 @@ func getOpts(ctx context.Context, r *http.Request, bucket, object string) (Objec
vid := strings.TrimSpace(r.Form.Get(xhttp.VersionID))
if vid != "" && vid != nullVersionID {
_, err := uuid.Parse(vid)
if err != nil {
logger.LogIf(ctx, err)
if _, err := uuid.Parse(vid); err != nil {
return opts, InvalidVersionID{
Bucket: bucket,
Object: object,