Skip to content

Commit

Permalink
update print for logs
Browse files Browse the repository at this point in the history
  • Loading branch information
zhucan authored and zhuc committed Sep 6, 2019
1 parent 37ef6b5 commit e461816
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,12 +578,11 @@ func (p *csiProvisioner) ProvisionExt(options controller.ProvisionOptions) (*v1.
if err == nil {
break
}
klog.V(3).Infof("%v. cleanup of volume %s failed", sourceErr, pvName)
klog.Errorf("%v. cleanup of volume %s failed", sourceErr, pvName)
}
if err != nil {
sourceErr = fmt.Errorf("%v. cleanup of volume %s failed, volume is orphaned: %v", sourceErr, pvName, err)
}
klog.Error(sourceErr)
return nil, controller.ProvisioningInBackground, sourceErr
}
}
Expand Down

0 comments on commit e461816

Please sign in to comment.