Add note to name logging mentioning trace logging should be enabled to debug.
PiperOrigin-RevId: 263194584
This commit is contained in:
parent
c386f046c1
commit
072d941e32
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue