chore: debug log file content in keyword parser
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
张泊明518370910136 2024-07-19 06:28:23 -04:00
parent 739069a18f
commit e4091f9ba4
GPG Key ID: D47306D7062CDA9D

View File

@ -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 {