Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove stacktrace in k8s events #180

Merged
merged 1 commit into from
Feb 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions daemon/eni-multi-ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (f *eniIPFactory) Create(count int) ([]types.NetworkResource, error) {

// no ip has been created
if waiting == 0 {
return ipResult, errors.Errorf("error submit ip create request: %+v", err)
return ipResult, errors.Errorf("error submit ip create request: %v", err)
}

var ip *types.ENIIP
Expand All @@ -306,7 +306,7 @@ func (f *eniIPFactory) Create(count int) ([]types.NetworkResource, error) {
}
}
if len(ipResult) == 0 {
return ipResult, errors.Errorf("error allocate ip address: %+v", err)
return ipResult, errors.Errorf("error allocate ip address: %v", err)
}

return ipResult, nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/aliyun/ecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (e *ecsImpl) AssignNIPsForENI(eniID string, count int) ([]net.IP, error) {
if innerErr != nil {
logrus.Warnf("Assign private ip address failed: %+v, retrying", innerErr)
if strings.Contains(innerErr.Error(), InvalidVSwitchIDIPNotEnough) {
return false, errors.Errorf("Assign private ip address failed: %+v", innerErr)
return false, errors.Errorf("Assign private ip address failed: %v", innerErr)
}
return false, nil
}
Expand Down