From e55822c62f7287698a683e6e7e40aa9a992b5585 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 28 Sep 2025 21:51:10 +0900 Subject: container/init: reduce verbose noise This makes it possible to optionally omit the identifying verbose message, for when the Op implementation can provide a much more useful message in its case, using information not yet available to the String method. Signed-off-by: Ophestra --- container/autoetc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'container/autoetc.go') diff --git a/container/autoetc.go b/container/autoetc.go index 3be4ec38..9a587404 100644 --- a/container/autoetc.go +++ b/container/autoetc.go @@ -64,5 +64,5 @@ func (e *AutoEtcOp) Is(op Op) bool { ve, ok := op.(*AutoEtcOp) return ok && e.Valid() && ve.Valid() && *e == *ve } -func (*AutoEtcOp) prefix() string { return "setting up" } -func (e *AutoEtcOp) String() string { return fmt.Sprintf("auto etc %s", e.Prefix) } +func (*AutoEtcOp) prefix() (string, bool) { return "setting up", true } +func (e *AutoEtcOp) String() string { return fmt.Sprintf("auto etc %s", e.Prefix) } -- cgit v1.3.1