From 3f70094c0a1bf79aa535af766bfbb20ba66dae0c Mon Sep 17 00:00:00 2001 From: Abel Luck Date: Sat, 28 Feb 2026 10:16:07 +0100 Subject: [PATCH] logging: add error, category, count, ids, idle_seconds to EXTRA_FIELDS --- agent/nix_builder_autoscaler/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/nix_builder_autoscaler/logging.py b/agent/nix_builder_autoscaler/logging.py index 0036be2..23fabf9 100644 --- a/agent/nix_builder_autoscaler/logging.py +++ b/agent/nix_builder_autoscaler/logging.py @@ -12,7 +12,7 @@ from typing import Any class JSONFormatter(logging.Formatter): """Format log records as single-line JSON.""" - EXTRA_FIELDS = ("slot_id", "reservation_id", "instance_id", "request_id") + EXTRA_FIELDS = ("slot_id", "reservation_id", "instance_id", "request_id", "error", "category", "count", "ids", "idle_seconds") def format(self, record: logging.LogRecord) -> str: """Format a log record as JSON."""