Add debug logging for URL status in check.go to enhance troubleshooting in GitHub Actions

This commit is contained in:
Luke Hagar
2025-09-11 18:40:26 +00:00
parent f1f09e0fe5
commit d3072d1f64

View File

@@ -85,6 +85,10 @@ func init() {
} else {
failCount++
}
// Emit GitHub Actions debug log for each URL.
// These lines appear only when step debug logging is enabled via the
// repository/organization secret ACTIONS_STEP_DEBUG=true.
fmt.Printf("::debug::URL %s status=%d ok=%v err=%s sources=%d\n", r.URL, r.Status, r.OK, r.ErrMsg, len(r.Sources))
if jsonOut != "" && !r.OK {
failures = append(failures, SerializableResult{
URL: r.URL,