Skip to content

Commit

Permalink
fix: forgot changing env var prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Jan 31, 2024
1 parent 671a5a9 commit ebac56b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions typelog/envs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ package typelog

import (
"os"
"strings"
)

var EnvTurnJSON bool = os.Getenv("LOGUS_LOG_JSON") == "true"
const (
TOOL_NAME = "typelog"
)

var EnvTurnJSON bool = os.Getenv(strings.ToUpper(TOOL_NAME)+"_LOG_JSON") == "true"

var EnvTurnFileShowing bool = os.Getenv("LOGUS_LOG_FILE_SHOWING") == "true"
var EnvTurnFileShowing bool = os.Getenv(strings.ToUpper(TOOL_NAME)+"_LOG_FILE_SHOWING") == "true"

0 comments on commit ebac56b

Please sign in to comment.