summaryrefslogtreecommitdiffhomepage
path: root/pkg/refs/refcounter.go
diff options
context:
space:
mode:
authorIan Gudger <igudger@google.com>2019-08-13 12:47:46 -0700
committergVisor bot <gvisor-bot@google.com>2019-08-13 12:49:18 -0700
commit072d941e325686e877395dabb4320c39e5e82a8a (patch)
tree00633b50b2c2ee8442e49b0d33e5ee65598b7908 /pkg/refs/refcounter.go
parentc386f046c1db5b065acf52ad3dde8080a38ddf01 (diff)
Add note to name logging mentioning trace logging should be enabled to debug.
PiperOrigin-RevId: 263194584
Diffstat (limited to 'pkg/refs/refcounter.go')
-rw-r--r--pkg/refs/refcounter.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/refs/refcounter.go b/pkg/refs/refcounter.go
index 6ecbace9e..828e9b5c1 100644
--- a/pkg/refs/refcounter.go
+++ b/pkg/refs/refcounter.go
@@ -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)
}