From 7eb13cfa9a5dfd08febf49e9bbf0e572886bd890 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 12 May 2023 23:22:48 +0200 Subject: [PATCH] config: also take into account PCMT_DEVEL --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 40bf127..384c928 100644 --- a/config/config.go +++ b/config/config.go @@ -69,7 +69,7 @@ func LoadConfig(conf string, isPath bool) (*Config, error) { ) } - if config.DevelMode { + if config.DevelMode && os.Getenv("PCMT_DEVEL") != "False" { log.Debug("set DEBUG level based on config value") slogger = slogging.SetLevel(slogging.LevelDebug)