Skip to content

Commit

Permalink
data-api: use LOG_LEVEL environment variable rather than PANDORA_LOG
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Feb 23, 2024
1 parent b32699c commit 857c82e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/data-api/internal/commands/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (c ServeCommand) Run(args []string) int {
serviceNames = pointer.To(strings.Split(serviceNamesRaw, ","))
}

if logLevel := strings.TrimSpace(os.Getenv("PANDORA_LOG")); logLevel != "" {
if logLevel := strings.TrimSpace(os.Getenv("LOG_LEVEL")); logLevel != "" {
c.Log.SetLevel(hclog.LevelFromString(logLevel))
}

Expand Down

0 comments on commit 857c82e

Please sign in to comment.