Fixed Bugs

* Fixed gin release mode
- Removed debug logs
This commit is contained in:
2024-01-21 22:56:53 +02:00
parent 39e16ce408
commit d7e856aca2
4 changed files with 19 additions and 11 deletions

View File

@@ -16,6 +16,8 @@ type DHConfig struct {
IdentityUsername string `json:"identityUsername"`
IdentityPassword string `json:"identityPassword"`
DebugMode bool `json:"debugMode"`
}
func GetConfiguration() DHConfig {
@@ -64,5 +66,11 @@ func GetConfiguration() DHConfig {
config.IdentityPassword = val
}
if val, exists := os.LookupEnv("DEBUG_MODE"); exists {
if isDebug, err := strconv.ParseBool(val); err == nil {
config.DebugMode = isDebug
}
}
return config
}