1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #72 from shykes/creack-reduce-debug

Reduce debugf frequency to avoid terminal freeze
This commit is contained in:
Michael Crosby 2013-11-25 15:50:07 -08:00
commit 487b3d8a8c

View file

@ -650,10 +650,13 @@ func (devices *DeviceSet) waitRemove(hash string) error {
// The error might actually be something else, but we can't differentiate.
return nil
}
if i%100 == 0 {
utils.Debugf("Waiting for removal of %s: exists=%d", devname, devinfo.Exists)
}
if devinfo.Exists == 0 {
break
}
time.Sleep(1 * time.Millisecond)
}
if i == 1000 {
@ -676,7 +679,9 @@ func (devices *DeviceSet) waitClose(hash string) error {
if err != nil {
return err
}
if i%100 == 0 {
utils.Debugf("Waiting for unmount of %s: opencount=%d", devname, devinfo.OpenCount)
}
if devinfo.OpenCount == 0 {
break
}