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))