From e4091f9ba426e1eadd9e7c6243ec4feb73a2ee51 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Fri, 19 Jul 2024 06:28:23 -0400 Subject: [PATCH] chore: debug log file content in keyword parser --- internal/parsers/keyword/parser.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/parsers/keyword/parser.go b/internal/parsers/keyword/parser.go index f7890fe..9671a78 100644 --- a/internal/parsers/keyword/parser.go +++ b/internal/parsers/keyword/parser.go @@ -2,6 +2,7 @@ package keyword import ( "fmt" + "log/slog" "strings" "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" @@ -30,6 +31,7 @@ func Parse(executorResult stage.ExecutorResult, conf Conf) ( matched := false for _, file := range conf.Files { content := executorResult.Files[file] + slog.Debug("file content", "file", file, "content", content) for _, match := range conf.Matches { count := strings.Count(content, match.Keyword) if count > 0 {