Skip to content

Commit

Permalink
Don't log about invalid log level when TF_LOG isn't set. (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
paddycarver committed Sep 21, 2021
1 parent 5013651 commit 489e81e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tfsdklog/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ func newSink() hclog.Logger {
envLevel := strings.ToUpper(os.Getenv(envLog))
if envLevel == "" {
logLevel = hclog.Off
}
if envLevel == "JSON" {
} else if envLevel == "JSON" {
logLevel = hclog.Trace
json = true
} else if isValidLogLevel(envLevel) {
Expand Down

0 comments on commit 489e81e

Please sign in to comment.