diff --git a/cli/api.go b/cli/api.go index f48c5f9..4f3c046 100644 --- a/cli/api.go +++ b/cli/api.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/ipfs-force-community/sophon-auth/jwtclient" + "github.com/ipfs-force-community/sophon-auth/log" "github.com/ipfs-force-community/sophon-auth/util" "github.com/mitchellh/go-homedir" "github.com/urfave/cli/v2" @@ -62,7 +63,7 @@ func GetRepoPath(ctx *cli.Context) (string, error) { return "", fmt.Errorf("check deprecated repo exist: %w", err) } if deprecatedRepoPathExist { - fmt.Printf("[WARM]: repo path %s is deprecated, please transfer to %s instead\n", deprecatedRepoPath, repoPath) + log.Infof("[WARM]: repo path %s is deprecated, please transfer to %s instead\n", deprecatedRepoPath, repoPath) repoPath = deprecatedRepoPath } } diff --git a/cmd/server/main.go b/cmd/server/main.go index 6ee8006..ae77162 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -32,7 +32,7 @@ func newApp() (app *cli.App) { }, &cli.StringFlag{ Name: "repo", - EnvVars: []string{"VENUS_AUTH_PATH"}, + EnvVars: []string{"VENUS_AUTH_PATH", "SOPHON_AUTH_PATH"}, Value: "~/.sophon-auth", }, &cli.StringFlag{