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/initoverlay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'container/initoverlay.go') diff --git a/container/initoverlay.go b/container/initoverlay.go index c3f1c590..a1239283 100644 --- a/container/initoverlay.go +++ b/container/initoverlay.go @@ -209,7 +209,7 @@ func (o *MountOverlayOp) Is(op Op) bool { slices.EqualFunc(o.Lower, vo.Lower, func(a *Absolute, v *Absolute) bool { return a.Is(v) }) && o.Upper.Is(vo.Upper) && o.Work.Is(vo.Work) } -func (*MountOverlayOp) prefix() string { return "mounting" } +func (*MountOverlayOp) prefix() (string, bool) { return "mounting", true } func (o *MountOverlayOp) String() string { return fmt.Sprintf("overlay on %q with %d layers", o.Target, len(o.Lower)) } -- cgit v1.3.1