diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-27 10:52:09 +0000 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-27 10:52:09 +0000 |
| commit | 4f609454ba5b8db543863d6f20b042ca15cfe99f (patch) | |
| tree | c14492762753d45d180499c9d2fbac86699303c3 /scripts | |
| parent | 465fcc0bd08495c0a702b94e002a425115a0bab3 (diff) | |
| download | genenetwork4-4f609454ba5b8db543863d6f20b042ca15cfe99f.tar.gz | |
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.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/gn4-log.py | 3 |
1 files changed, 2 insertions, 1 deletions
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))) |
