Skip to content

Commit

Permalink
log: Log RtpPacket's runtime class name. (#2270)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev authored Jan 8, 2025
1 parent db7d0b8 commit b8ff629
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rtp/src/main/kotlin/org/jitsi/rtp/rtp/RtpPacket.kt
Original file line number Diff line number Diff line change
Expand Up @@ -410,15 +410,14 @@ open class RtpPacket(
).also { if (pendingHeaderExtensions != null) it.pendingHeaderExtensions = ArrayList(pendingHeaderExtensions) }
}

override fun toString(): String = with(StringBuilder()) {
append("RtpPacket: ")
override fun toString(): String = buildString {
append("${this@RtpPacket::class.java.simpleName}: ")
append("PT=$payloadType")
append(", Ssrc=$ssrc")
append(", SeqNum=$sequenceNumber")
append(", M=$isMarked")
append(", X=$hasEncodedExtensions")
append(", Ts=$timestamp")
toString()
}

/**
Expand Down

0 comments on commit b8ff629

Please sign in to comment.