From 581e390a595914df89a8585930a6fa333dd1cace Mon Sep 17 00:00:00 2001 From: Charles <50860453+charlie0220@users.noreply.github.com> Date: Wed, 9 Feb 2022 23:54:55 +0800 Subject: [PATCH] Change print to logger (#64) --- cmd/entrypoints/root.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/entrypoints/root.go b/cmd/entrypoints/root.go index a5c3e9a5..9c898916 100644 --- a/cmd/entrypoints/root.go +++ b/cmd/entrypoints/root.go @@ -6,6 +6,8 @@ import ( "fmt" "os" + "github.com/flyteorg/flytestdlib/logger" + "github.com/flyteorg/flytestdlib/config" "github.com/flyteorg/flytestdlib/config/viper" "github.com/spf13/cobra" @@ -68,7 +70,7 @@ func initConfig(flags *pflag.FlagSet) error { StrictMode: false, }) - fmt.Println("Using config file: ", configAccessor.ConfigFilesUsed()) + logger.Infof(context.TODO(), "Using config file: %v", configAccessor.ConfigFilesUsed()) configAccessor.InitializePflags(flags)