From 4f609454ba5b8db543863d6f20b042ca15cfe99f Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 27 Nov 2026 10:52:09 +0000 Subject: gn4-log: keep error lines out of the counting views --datasets and --queries are machine-readable like --json and --summary, so a GEMMA backtrace or an error record must not be printed among the counts. Found by running both against the production log, where the week's error records came out first. --- scripts/gn4-log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/gn4-log.py b/scripts/gn4-log.py index c4cf3b0..42031a2 100755 --- a/scripts/gn4-log.py +++ b/scripts/gn4-log.py @@ -248,7 +248,8 @@ def main() -> int: # through in table mode -- the process log interleaves them, and # dropping them would hide the interesting failures -- but never # in a machine-readable mode. - if not args.quiet and not args.json and not args.summary: + if not (args.quiet or args.json or args.summary + or args.datasets or args.queries): print(line) continue rows.append((when, enrich(record, registry, None))) -- cgit 1.4.1