mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add note to name logging mentioning trace logging should be enabled to debug.
PiperOrigin-RevId: 263194584
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user