浏览代码

Merge pull request #31192 from thaJeztah/warn-instead-of-error

don't log v2 pull as error when retrying
Aaron Lehmann 8 年之前
父节点
当前提交
55fcd6f4db
共有 3 个文件被更改,包括 2 次插入3 次删除
  1. 1 1
      distribution/pull.go
  2. 0 1
      distribution/pull_v2.go
  3. 1 1
      distribution/push.go

+ 1 - 1
distribution/pull.go

@@ -140,7 +140,7 @@ func Pull(ctx context.Context, ref reference.Named, imagePullConfig *ImagePullCo
 					// append subsequent errors
 					// append subsequent errors
 					lastErr = err
 					lastErr = err
 				}
 				}
-				logrus.Errorf("Attempting next endpoint for pull after error: %v", err)
+				logrus.Infof("Attempting next endpoint for pull after error: %v", err)
 				continue
 				continue
 			}
 			}
 			logrus.Errorf("Not continuing with pull after error: %v", err)
 			logrus.Errorf("Not continuing with pull after error: %v", err)

+ 0 - 1
distribution/pull_v2.go

@@ -73,7 +73,6 @@ func (p *v2Puller) Pull(ctx context.Context, ref reference.Named) (err error) {
 			return err
 			return err
 		}
 		}
 		if continueOnError(err) {
 		if continueOnError(err) {
-			logrus.Errorf("Error trying v2 registry: %v", err)
 			return fallbackError{
 			return fallbackError{
 				err:         err,
 				err:         err,
 				confirmedV2: p.confirmedV2,
 				confirmedV2: p.confirmedV2,

+ 1 - 1
distribution/push.go

@@ -126,7 +126,7 @@ func Push(ctx context.Context, ref reference.Named, imagePushConfig *ImagePushCo
 					}
 					}
 					err = fallbackErr.err
 					err = fallbackErr.err
 					lastErr = err
 					lastErr = err
-					logrus.Errorf("Attempting next endpoint for push after error: %v", err)
+					logrus.Infof("Attempting next endpoint for push after error: %v", err)
 					continue
 					continue
 				}
 				}
 			}
 			}