Add note to name logging mentioning trace logging should be enabled to debug.

PiperOrigin-RevId: 263194584
This commit is contained in:
Ian Gudger
2019-08-13 12:49:18 -07:00
committed by gVisor bot
parent c386f046c1
commit 072d941e32
+2
View File
@@ -325,6 +325,8 @@ func (r *AtomicRefCount) finalize() {
msg := fmt.Sprintf("%sAtomicRefCount %p owned by %q garbage collected with ref count of %d (want 0)", note, r, r.name, n)
if len(r.stack) != 0 {
msg += ":\nCaller:\n" + formatStack(r.stack)
} else {
msg += " (enable trace logging to debug)"
}
log.Warningf(msg)
}