This commit is contained in:
@@ -54,7 +54,8 @@ func (r *record) watch(ctx context.Context) {
|
||||
if err != nil {
|
||||
r.logger.Ctx(ctx).Error("check ip err", zap.Error(err))
|
||||
} else {
|
||||
r.logger.Ctx(ctx).Info("check ip ok", zap.Duration("duration", duration))
|
||||
r.logger.Ctx(ctx).Info("check ip ok",
|
||||
zap.String("duration", fmt.Sprintf("%dms", duration.Milliseconds())))
|
||||
}
|
||||
_ = s.check(err == nil, func() error {
|
||||
// 增加负载均衡
|
||||
|
Reference in New Issue
Block a user