From 0d783e7344b1c5a1dee7c838c22b4fd9523bf7b4 Mon Sep 17 00:00:00 2001 From: Andrew Stuart Date: Fri, 28 Sep 2018 01:04:19 -0700 Subject: [PATCH] Use test log --- viper_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper_test.go b/viper_test.go index 76ec02e..78d80ef 100644 --- a/viper_test.go +++ b/viper_test.go @@ -1454,7 +1454,7 @@ func newViperWithSymlinkedConfigFile(t *testing.T) (*Viper, string, string, func // and link the `/datadir1/config.yaml` to `/config.yaml` configFile := path.Join(watchDir, "config.yaml") os.Symlink(path.Join(watchDir, "data", "config.yaml"), configFile) - fmt.Printf("Config file location: %s\n", path.Join(watchDir, "config.yaml")) + t.Logf("Config file location: %s\n", path.Join(watchDir, "config.yaml")) // init Viper v := New() v.SetConfigFile(configFile)