Yeuoly 1 ano atrás
pai
commit
4f93e496fa
1 arquivos alterados com 5 adições e 0 exclusões
  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)