@@ -54,8 +54,8 @@ class GarbageCollector {
54
54
55
55
#if swift(>=5.3)
56
56
if #available( iOS 14 . 0 , macOS 10 . 16 , tvOS 14 . 0 , watchOS 7 . 0 , * ) {
57
- logger . debug ( " GC Refcount: \( self . roots [ id] ? . refCount ?? 0 , privacy : . public ) \( operation . request . node . params . name , privacy : . public ) \( operation . request . variables ) " )
58
- logger. info ( " GC Release: \( operation. request. node. params. name, privacy: . public) \( operation. request. variables) " )
57
+ let previousRefCount = self . roots [ id] ? . refCount ?? 0
58
+ logger. info ( " GC Release: \( operation. request. node. params. name, privacy: . public) \( operation. request. variables) [ \( previousRefCount ) -> \( previousRefCount - 1 ) ] " )
59
59
}
60
60
#endif
61
61
os_signpost ( . event, log: log, name: " release operation " , signpostID: signpostID)
@@ -73,8 +73,8 @@ class GarbageCollector {
73
73
74
74
#if swift(>=5.3)
75
75
if #available( iOS 14 . 0 , macOS 10 . 16 , tvOS 14 . 0 , watchOS 7 . 0 , * ) {
76
- logger . debug ( " GC Refcount: \( self . roots [ id] ? . refCount ?? 0 , privacy : . public ) \( operation . request . node . params . name , privacy : . public ) \( operation . request . variables ) " )
77
- logger. info ( " GC Retain: \( operation. request. node. params. name, privacy: . public) \( operation. request. variables) " )
76
+ let previousRefCount = self . roots [ id] ? . refCount ?? 0
77
+ logger. info ( " GC Retain: \( operation. request. node. params. name, privacy: . public) \( operation. request. variables) [ \( previousRefCount ) -> \( previousRefCount + 1 ) ] " )
78
78
}
79
79
#endif
80
80
os_signpost ( . event, log: log, name: " retain operation " , signpostID: signpostID)
0 commit comments