From 69dd51e93c97e6d83d6ce5eeeceadd866ad437a7 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 30 Oct 2026 13:54:53 +0100 Subject: [PATCH] lib.ec.secret_store.Base.put(): Log no-op put() A put() that leaves the stored content unchanged is silently skipped. Add debug logging to make the decision more obvious. Signed-off-by: Jan Lindemann --- src/python/jw/pkg/lib/ec/secret_store/Base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/python/jw/pkg/lib/ec/secret_store/Base.py b/src/python/jw/pkg/lib/ec/secret_store/Base.py index f09fa340..83297ae7 100644 --- a/src/python/jw/pkg/lib/ec/secret_store/Base.py +++ b/src/python/jw/pkg/lib/ec/secret_store/Base.py @@ -5,6 +5,7 @@ from typing import TYPE_CHECKING, Awaitable, Callable, TypeVar, override from ...base import Result, StatResult from ...file_types import FT_DIR, FT_REG from ...FileContext import FileContext +from ...log import DEBUG, log from .layout import DEFAULT_PREFIX, host_prefix if TYPE_CHECKING: @@ -153,6 +154,10 @@ class Base(FileContext): pass else: if self._put_is_noop(existing.stdout, content, ftype): + log( + DEBUG, + f'{self.log_name}: put: "{path}" unchanged, not written', + ) return Result() return await super().put( path, -- 2.56.1