Skip to content

Commit a5fc5c1

Browse files
authored
Update CappedTypeAdapterFactory.kt
1 parent 78bc28d commit a5fc5c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/src/main/kotlin/spp/probe/services/common/serialize/CappedTypeAdapterFactory.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ class CappedTypeAdapterFactory(val maxDepth: Int) : TypeAdapterFactory {
7373
jsonWriter.value(objSize.toString())
7474
jsonWriter.name("@cause")
7575
jsonWriter.value(e.message)
76+
jsonWriter.name("@id")
77+
jsonWriter.value(Integer.toHexString(System.identityHashCode(value)))
7678
jsonWriter.endObject()
7779
}
7880
JsogRegistry.get().userData["depth"] = (JsogRegistry.get().userData["depth"] as Int) - 1

0 commit comments

Comments
 (0)