Skip to content

Commit 937bc78

Browse files
committed
log more TrackInfo
1 parent 3d242e2 commit 937bc78

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Sources/LiveKit/Extensions/CustomStringConvertible.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,16 @@ extension Livekit_AddTrackRequest: CustomStringConvertible {
4848
extension Livekit_TrackInfo: CustomStringConvertible {
4949

5050
public var description: String {
51-
"TrackInfo(sid: \(sid), name: \(name), type: \(type), source: \(source), width: \(width), height: \(height), muted: \(muted))"
51+
"TrackInfo(sid: \(sid), " +
52+
"name: \(name), " +
53+
"type: \(type), " +
54+
"source: \(source), " +
55+
"width: \(width), " +
56+
"height: \(height), " +
57+
"muted: \(muted), " +
58+
"simulcast: \(simulcast), " +
59+
"codecs: \(codecs.map({ String(describing: $0) })), " +
60+
"layers: \(layers.map({ String(describing: $0) })))"
5261
}
5362
}
5463

0 commit comments

Comments
 (0)