Skip to content

Commit

Permalink
Merge pull request #370 from DopplerHQ/watsonian/env-var-logging-stderr
Browse files Browse the repository at this point in the history
Log valueFromEnvironmentNotice messages to stderr
  • Loading branch information
watsonian authored Feb 24, 2023
2 parents 7eed7cf + 97e647a commit dd06ffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ func getPassphrase(cmd *cobra.Command, flag string, config models.ScopedOptions)
if configuration.CanReadEnv {
passphrase := os.Getenv("DOPPLER_PASSPHRASE")
if passphrase != "" {
utils.Print(valueFromEnvironmentNotice("DOPPLER_PASSPHRASE"))
utils.Log(valueFromEnvironmentNotice("DOPPLER_PASSPHRASE"))
return passphrase
}
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func setup(cmd *cobra.Command, args []string) {
case models.FlagSource.String():
saveToken = true
case models.EnvironmentSource.String():
utils.Print(valueFromEnvironmentNotice("DOPPLER_TOKEN"))
utils.Log(valueFromEnvironmentNotice("DOPPLER_TOKEN"))
saveToken = true
}
}
Expand Down Expand Up @@ -82,7 +82,7 @@ func setup(cmd *cobra.Command, args []string) {
case models.FlagSource.String():
selectedProject = localConfig.EnclaveProject.Value
case models.EnvironmentSource.String():
utils.Print(valueFromEnvironmentNotice("DOPPLER_PROJECT"))
utils.Log(valueFromEnvironmentNotice("DOPPLER_PROJECT"))
selectedProject = localConfig.EnclaveProject.Value
default:
if useRepoConfig && repoConfig.Setup.Project != "" {
Expand Down Expand Up @@ -117,7 +117,7 @@ func setup(cmd *cobra.Command, args []string) {
case models.FlagSource.String():
selectedConfig = localConfig.EnclaveConfig.Value
case models.EnvironmentSource.String():
utils.Print(valueFromEnvironmentNotice("DOPPLER_CONFIG"))
utils.Log(valueFromEnvironmentNotice("DOPPLER_CONFIG"))
selectedConfig = localConfig.EnclaveConfig.Value
default:
if useRepoConfig && repoConfig.Setup.Config != "" {
Expand Down

0 comments on commit dd06ffb

Please sign in to comment.