From 9246107da9629435ba0df1308e1f59bb2b8cef8e Mon Sep 17 00:00:00 2001 From: Boming Zhang <bomingzh@sjtu.edu.cn> Date: Thu, 5 Dec 2024 18:51:12 -0500 Subject: [PATCH] chore(healthcheck): error log teapot check env --- cmd/repo-health-checker/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/repo-health-checker/main.go b/cmd/repo-health-checker/main.go index 7132642..ef08034 100644 --- a/cmd/repo-health-checker/main.go +++ b/cmd/repo-health-checker/main.go @@ -68,13 +68,13 @@ func init() { func prepareTeapotCheck() ( confObj *conf.Conf, groups []string, actor, repoName string, err error, ) { - slog.Debug("teapot check prepare start", "env", os.Environ()) actor = os.Getenv("GITHUB_ACTOR") repository := os.Getenv("GITHUB_REPOSITORY") if actor == "" || repository != "" || strings.Count(repository, "/") != 1 || confPath != "" { + slog.Error("teapot env not set", "actor", actor, "repository", repository, "confPath", confPath, "env", os.Environ()) err = fmt.Errorf("teapot env not set") return }