Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Change print to logger (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie0220 authored Feb 9, 2022
1 parent bc30464 commit 581e390
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/entrypoints/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 581e390

Please sign in to comment.