mirror of
https://github.com/JustKato/drive-health.git
synced 2026-04-30 01:42:29 +03:00
Fixed Bugs
* Fixed gin release mode - Removed debug logs
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user