File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -448,12 +448,12 @@ internal actor DefaultRoomLifecycleManager<Contributor: RoomLifecycleContributor
448
448
449
449
if hasOperationInProgress {
450
450
// CHA-RL4a3
451
- logger. log ( message: " Recording pending discontinuity event for contributor \( contributor) " , level: . info)
451
+ logger. log ( message: " Recording pending discontinuity event \( reason ) for contributor \( contributor) " , level: . info)
452
452
453
453
contributorAnnotations [ contributor] . pendingDiscontinuityEvents. append ( reason)
454
454
} else {
455
455
// CHA-RL4a4
456
- logger. log ( message: " Emitting discontinuity event for contributor \( contributor) " , level: . info)
456
+ logger. log ( message: " Emitting discontinuity event \( reason ) for contributor \( contributor) " , level: . info)
457
457
458
458
await contributor. emitDiscontinuity ( reason)
459
459
}
@@ -464,13 +464,14 @@ internal actor DefaultRoomLifecycleManager<Contributor: RoomLifecycleContributor
464
464
if hasOperationInProgress {
465
465
if !stateChange. resumed, hadAlreadyAttached {
466
466
// CHA-RL4b1
467
- logger. log ( message: " Recording pending discontinuity event for contributor \( contributor) " , level: . info)
468
467
469
468
guard let reason = stateChange. reason else {
470
469
// TODO: Decide the right thing to do here (https://github.com/ably-labs/ably-chat-swift/issues/74)
471
470
preconditionFailure ( " Non-initial ATTACHED state change with resumed == false should have a reason " )
472
471
}
473
472
473
+ logger. log ( message: " Recording pending discontinuity event \( reason) for contributor \( contributor) " , level: . info)
474
+
474
475
contributorAnnotations [ contributor] . pendingDiscontinuityEvents. append ( reason)
475
476
}
476
477
} else {
You can’t perform that action at this time.
0 commit comments