mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-13 02:35:27 +00:00
debug
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user