switch to go-kit/log (#1575)

Signed-off-by: yeya24 <yb532204897@gmail.com>
This commit is contained in:
Ben Ye 2019-12-31 11:19:37 -05:00 committed by Ben Kochie
commit 2477c5c67d
158 changed files with 3434 additions and 4636 deletions

View file

@ -16,6 +16,7 @@
package collector
import (
"github.com/go-kit/kit/log"
"strings"
"testing"
@ -80,7 +81,7 @@ func TestMountPointDetails(t *testing.T) {
"/var/lib/kubelet/plugins/kubernetes.io/vsphere-volume/mounts/[vsanDatastore] bafb9e5a-8856-7e6c-699c-801844e77a4a/kubernetes-dynamic-pvc-3eba5bba-48a3-11e8-89ab-005056b92113.vmdk": "",
}
filesystems, err := mountPointDetails()
filesystems, err := mountPointDetails(log.NewNopLogger())
if err != nil {
t.Log(err)
}
@ -101,7 +102,7 @@ func TestMountsFallback(t *testing.T) {
"/": "",
}
filesystems, err := mountPointDetails()
filesystems, err := mountPointDetails(log.NewNopLogger())
if err != nil {
t.Log(err)
}
@ -129,7 +130,7 @@ func TestPathRootfs(t *testing.T) {
"/sys/fs/cgroup": "",
}
filesystems, err := mountPointDetails()
filesystems, err := mountPointDetails(log.NewNopLogger())
if err != nil {
t.Log(err)
}