diff --git a/modules/setting/server.go b/modules/setting/server.go index 56685a91652..56af7a2b085 100644 --- a/modules/setting/server.go +++ b/modules/setting/server.go @@ -279,6 +279,7 @@ func loadServerFrom(rootCfg ConfigProvider) { StaticCacheTime = sec.Key("STATIC_CACHE_TIME").MustDuration(6 * time.Hour) AppDataPath = sec.Key("APP_DATA_PATH").MustString(filepath.Join(AppWorkPath, "data")) + // FIXME: debug log.Error("Set AppDataPath=%s\n%s\n", AppDataPath, log.Stack(2)) if !filepath.IsAbs(AppDataPath) { diff --git a/modules/setting/testenv.go b/modules/setting/testenv.go index c10dc06aa1f..688c43452f3 100644 --- a/modules/setting/testenv.go +++ b/modules/setting/testenv.go @@ -66,6 +66,9 @@ func SetupGiteaTestEnv() { customConfBuiltin = filepath.Join(AppWorkPath, giteaConf) CustomConf = customConfBuiltin _ = os.WriteFile(CustomConf, []byte(os.Getenv("GITEA_TEST_CONF_CONTENT")), 0o644) + + // FIXME: debug + log.Error("SetupGiteaTestEnv CustomConf=%s\n%s\n%s\n", CustomConf, os.Getenv("GITEA_TEST_CONF_CONTENT"), log.Stack(2)) } else { // CustomConf must be absolute path to make tests pass, CustomConf = filepath.Join(AppWorkPath, giteaConf)