From b4cd05b879f7a3bf43aa70a45eefb19dfdca065c Mon Sep 17 00:00:00 2001 From: Andy Goldstein Date: Wed, 29 Jun 2016 16:33:11 -0400 Subject: [PATCH] Make ThinPoolWatcher loglevel consistent --- devicemapper/thin_pool_watcher.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devicemapper/thin_pool_watcher.go b/devicemapper/thin_pool_watcher.go index bf2300a3..6f5666a0 100644 --- a/devicemapper/thin_pool_watcher.go +++ b/devicemapper/thin_pool_watcher.go @@ -74,7 +74,7 @@ func (w *ThinPoolWatcher) Start() { // print latency for refresh duration := time.Since(start) - glog.V(3).Infof("thin_ls(%d) took %s", start.Unix(), duration) + glog.V(5).Infof("thin_ls(%d) took %s", start.Unix(), duration) } } } @@ -115,7 +115,7 @@ func (w *ThinPoolWatcher) Refresh() error { } if currentlyReserved { - glog.V(4).Infof("metadata for %v is currently reserved; releasing", w.poolName) + glog.V(5).Infof("metadata for %v is currently reserved; releasing", w.poolName) _, err = w.dmsetup.Message(w.poolName, 0, releaseMetadataMessage) if err != nil { err = fmt.Errorf("error releasing metadata snapshot for %v: %v", w.poolName, err) @@ -123,7 +123,7 @@ func (w *ThinPoolWatcher) Refresh() error { } } - glog.Infof("reserving metadata snapshot for thin-pool %v", w.poolName) + glog.V(5).Infof("reserving metadata snapshot for thin-pool %v", w.poolName) // NOTE: "0" in the call below is for the 'sector' argument to 'dmsetup // message'. It's not needed for thin pools. if output, err := w.dmsetup.Message(w.poolName, 0, reserveMetadataMessage); err != nil {