From 18795df69c2629c69bcdd9cdb421b6671e094182 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 25 Apr 2026 18:25:44 +0800 Subject: [PATCH] debug --- Makefile | 2 +- modules/setting/server.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e621cc362fc..3c0e2a3e731 100644 --- a/Makefile +++ b/Makefile @@ -411,7 +411,7 @@ coverage: .PHONY: unit-test-coverage unit-test-coverage: @echo "Running unit-test-coverage $(GOTESTFLAGS) -tags '$(TEST_TAGS)'..." - @$(GO) test $(GOTESTFLAGS) -timeout=20m -tags='$(TEST_TAGS)' -cover -coverprofile coverage.out $(GO_TEST_PACKAGES) && echo "\n==>\033[32m Ok\033[m\n" || exit 1 + @$(GO) test $(GOTESTFLAGS) -timeout=20m -tags='$(TEST_TAGS)' -v -cover -coverprofile coverage.out $(GO_TEST_PACKAGES) && echo "\n==>\033[32m Ok\033[m\n" || exit 1 .PHONY: tidy tidy: ## run go mod tidy diff --git a/modules/setting/server.go b/modules/setting/server.go index 56af7a2b085..f8f4038c0d1 100644 --- a/modules/setting/server.go +++ b/modules/setting/server.go @@ -280,7 +280,8 @@ func loadServerFrom(rootCfg ConfigProvider) { 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)) + bufCustomConf, _ := os.ReadFile(CustomConf) + log.Error("Set AppDataPath=%s (CustomConf=%s)\n%s\n%s\n", AppDataPath, CustomConf, string(bufCustomConf), log.Stack(2)) if !filepath.IsAbs(AppDataPath) { AppDataPath = filepath.ToSlash(filepath.Join(AppWorkPath, AppDataPath))