Skip to content

Commit e2617b5

Browse files
committed
log sdk binary version and stream status
1 parent 00c0ea1 commit e2617b5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

OpenParsec/ParsecSDKBridge.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ class ParsecSDKBridge: ParsecService {
5555

5656
init() {
5757
print("Parsec SDK Version: " + String(ParsecSDKBridge.PARSEC_VER))
58+
let runtimeVer = ParsecVersion()
59+
print("Parsec SDK binary: \(runtimeVer >> 16).\(runtimeVer & 0xFFFF)")
5860

5961
ParsecSetLogCallback(
6062
{ (level, msg, _) in
@@ -184,6 +186,8 @@ class ParsecSDKBridge: ParsecService {
184186
handleCursorEvent(event: e.cursor)
185187
} else if e.type == CLIENT_EVENT_USER_DATA {
186188
handleUserDataEvent(event: e.userData)
189+
} else if e.type == CLIENT_EVENT_STREAM {
190+
print("[stream] s=\(e.stream.stream) status=\(e.stream.status.rawValue)")
187191
}
188192
}
189193

0 commit comments

Comments
 (0)