Lower ThinPoolWatcher cache miss log level
This commit is contained in:
parent
b4cd05b879
commit
d05098b314
@ -294,7 +294,10 @@ func (h *dockerFsHandler) Usage() (uint64, uint64) {
|
|||||||
if h.thinPoolWatcher != nil {
|
if h.thinPoolWatcher != nil {
|
||||||
thinPoolUsage, err := h.thinPoolWatcher.GetUsage(h.deviceID)
|
thinPoolUsage, err := h.thinPoolWatcher.GetUsage(h.deviceID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("unable to get fs usage from thin pool for device %v: %v", h.deviceID, err)
|
// TODO: ideally we should keep track of how many times we failed to get the usage for this
|
||||||
|
// device vs how many refreshes of the cache there have been, and display an error e.g. if we've
|
||||||
|
// had at least 1 refresh and we still can't find the device.
|
||||||
|
glog.V(5).Infof("unable to get fs usage from thin pool for device %s: %v", h.deviceID, err)
|
||||||
} else {
|
} else {
|
||||||
baseUsage = thinPoolUsage
|
baseUsage = thinPoolUsage
|
||||||
usage += thinPoolUsage
|
usage += thinPoolUsage
|
||||||
|
Loading…
Reference in New Issue
Block a user