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:47:46 -07:00 committed by gVisor bot
parent c386f046c1
commit 072d941e32
1 changed files with 2 additions and 0 deletions

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)
}