You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pubnub-kotlin/pubnub-kotlin-impl/src/main/kotlin/com/pubnub/internal/logging/networkLogging/LogMessageFormatter.kt
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,8 +42,11 @@ object LogMessageFormatter {
42
42
43
43
/**
44
44
* Extension function to create a simplified string representation of LogMessage.
45
+
* Extracts only the first segment of the pubNubId UUID (e.g., "646f1660" from "646f1660-6621-4c27-8560-597017d1ba95")
46
+
* for more concise logging output.
45
47
*/
46
48
fun LogMessage.simplified(): String {
47
49
val messageContent =LogMessageFormatter.formatMessageContent(this.message)
Copy file name to clipboardExpand all lines: pubnub-kotlin/pubnub-kotlin-impl/src/test/kotlin/com/pubnub/internal/logging/networkLogging/LogMessageFormatterTest.kt
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -145,13 +145,13 @@ class LogMessageFormatterTest {
0 commit comments