refactor(common): use strings.ToLower for LOG_DOCKER env variable check to improve code readability and maintainability (#1035)

Co-authored-by: luogz17 <luogz17@annto.com.cn>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
This commit is contained in:
Thompson
2023-12-11 15:57:15 +08:00
committed by GitHub
parent 2e627f781a
commit 566fb23b9d

View File

@@ -15,7 +15,7 @@ var verbose bool
func init() {
v := os.Getenv("LOG_DOCKER")
if v == "true" || v == "TRUE" {
if strings.ToLower(v) == "true" {
verbose = true
}
}