Yeuoly vor 1 Jahr
Ursprung
Commit
4f93e496fa
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5 0
      internal/static/config.go

+ 5 - 0
internal/static/config.go

@@ -28,6 +28,11 @@ func InitConfig(path string) error {
 		return err
 	}
 
+	debug, err := strconv.ParseBool(os.Getenv("DEBUG"))
+	if err == nil {
+		difySandboxGlobalConfigurations.App.Debug = debug
+	}
+
 	max_workers := os.Getenv("MAX_WORKERS")
 	if max_workers != "" {
 		difySandboxGlobalConfigurations.MaxWorkers, _ = strconv.Atoi(max_workers)