prometheus/cmd/promtool
Pierluigi Lenoci afe0547899
promtool: redirect debug output to stderr (#18346)
The debug flag in `promtool test rules` writes diagnostic output
using fmt.Printf to stdout, which can interfere with machine-parseable
output (e.g. JUnit XML via --junit-output) and piped workflows.

Redirect all DEBUG lines to stderr using fmt.Fprintf(os.Stderr, ...),
consistent with the existing error output pattern already present in
the file (line 78).

Signed-off-by: Pierluigi Lenoci <pierluigi.lenoci@gmail.com>
2026-03-24 12:12:54 +01:00
..
testdata promtool: support missing promql syntax features (#17926) 2026-02-09 07:26:37 +00:00
analyze.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
analyze_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
archive.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
backfill.go Refractor promtool errors (#17842) 2026-01-13 06:35:11 +00:00
backfill_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
debug.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
main.go chore: fix emptyStringTest issues from gocritic (#18226) 2026-03-04 08:24:50 +01:00
main_test.go promtool: fix --enable-feature flags ignored in check config and test rules (#18097) 2026-02-16 15:38:26 +01:00
metrics.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
metrics_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
query.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
rules.go Replace per-component parser options with default instance 2026-02-11 11:16:04 +01:00
rules_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
sd.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
sd_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
tsdb.go chore: fix emptyStringTest issues from gocritic (#18226) 2026-03-04 08:24:50 +01:00
tsdb_posix_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
tsdb_test.go Refactor parse.go into an instance-based Parser interface 2026-02-11 11:21:49 +01:00
unittest.go promtool: redirect debug output to stderr (#18346) 2026-03-24 12:12:54 +01:00
unittest_test.go Refactor parse.go into an instance-based Parser interface 2026-02-11 11:21:49 +01:00