From a01f6857dcb05eb43edb2caa5efeec0f5cd01c02 Mon Sep 17 00:00:00 2001 From: Mike Degatano Date: Thu, 2 Jul 2026 19:30:09 +0000 Subject: [PATCH] Template CONTAINER_LOG_EPOCH via extra fields --- supervisor/exceptions.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/supervisor/exceptions.py b/supervisor/exceptions.py index d45a4d500..a149cd2fa 100644 --- a/supervisor/exceptions.py +++ b/supervisor/exceptions.py @@ -815,7 +815,7 @@ class HostContainerLogEpochError(APIUnknownSupervisorError, HostLogError): """Failed to determine container log epoch via journald.""" error_key = "host_container_log_epoch_error" - message_template = "Cannot determine CONTAINER_LOG_EPOCH of {identifiers}" + message_template = "Cannot determine {symbol} of {identifiers}" def __init__( self, @@ -824,7 +824,10 @@ class HostContainerLogEpochError(APIUnknownSupervisorError, HostLogError): identifiers: list[str], ) -> None: """Initialize exception.""" - self.extra_fields = {"identifiers": ", ".join(identifiers)} + self.extra_fields = { + "symbol": "CONTAINER_LOG_EPOCH", + "identifiers": ", ".join(identifiers), + } super().__init__(logger)