aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/initsymlink.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-28 21:51:10 +0900
committerOphestra <cat@gensokyo.uk>2025-09-28 21:51:10 +0900
commite55822c62f7287698a683e6e7e40aa9a992b5585 (patch)
tree19f5e8e2614c86c9a79f8264b49a2b48e13fabee /container/initsymlink.go
parent802e6afa34de7f6124157153b0bde4ac25d7b363 (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'container/initsymlink.go')
-rw-r--r--container/initsymlink.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/container/initsymlink.go b/container/initsymlink.go
index 4d1f8e47..7bd71746 100644
--- a/container/initsymlink.go
+++ b/container/initsymlink.go
@@ -55,7 +55,7 @@ func (l *SymlinkOp) Is(op Op) bool {
l.LinkName == vl.LinkName &&
l.Dereference == vl.Dereference
}
-func (*SymlinkOp) prefix() string { return "creating" }
+func (*SymlinkOp) prefix() (string, bool) { return "creating", true }
func (l *SymlinkOp) String() string {
return fmt.Sprintf("symlink on %q linkname %q", l.Target, l.LinkName)
}