mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #35567 from huangyanhong/hyhdocker
modify log in order to be same below
This commit is contained in:
commit
c7256dc38e
1 changed files with 3 additions and 2 deletions
|
@ -145,8 +145,9 @@ func (s *VolumeStore) Purge(name string) {
|
|||
s.globalLock.Lock()
|
||||
v, exists := s.names[name]
|
||||
if exists {
|
||||
if _, err := volumedrivers.ReleaseDriver(v.DriverName()); err != nil {
|
||||
logrus.Errorf("Error dereferencing volume driver: %v", err)
|
||||
driverName := v.DriverName()
|
||||
if _, err := volumedrivers.ReleaseDriver(driverName); err != nil {
|
||||
logrus.WithError(err).WithField("driver", driverName).Error("Error releasing reference to volume driver")
|
||||
}
|
||||
}
|
||||
if err := s.removeMeta(name); err != nil {
|
||||
|
|
Loading…
Reference in a new issue