summaryrefslogtreecommitdiffhomepage
path: root/pkg/refs/refcounter.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-08-13 20:42:20 +0000
committergVisor bot <gvisor-bot@google.com>2019-08-13 20:42:20 +0000
commit593e3cf629be672ba84d85ab0a22ae035a77fd60 (patch)
tree950b2b2ac26dec636260cd248e5fcdc98b41cd82 /pkg/refs/refcounter.go
parent057973c488bb3db51437f942b22dbe23cb54610c (diff)
parent0e907c4298e635d5960b1aeefde2294a6a795cbc (diff)
Merge 0e907c42 (automated)
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)
}