Skip to content

Commit

Permalink
[ECO-5095][CHA-RL*] Implement logging for RoomLifecycleManager
Browse files Browse the repository at this point in the history
1. Added private property logger with thread specific dynamic context
2. Added trace, debug, error logging for private doRetry method
3. Added trace, debug, error logging for attach method
4. Added trace, debug, error logging for detach method
5. Added trace, debug, error logging for release method
  • Loading branch information
sacOO7 committed Dec 12, 2024
1 parent 11180ae commit b3b0a6c
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 45 deletions.
2 changes: 1 addition & 1 deletion chat-android/src/main/java/com/ably/chat/Room.kt
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ internal class DefaultRoom(

lifecycleManager = RoomLifecycleManager(roomScope, statusLifecycle, roomFeatures, this.logger)

this.logger.debug("Initialized with features: ${roomFeatures.joinToString { it.featureName }}")
this.logger.debug("Initialized with features: ${roomFeatures.map { it.featureName }.joinWithBrackets}")
}

override fun onStatusChange(listener: RoomLifecycle.Listener): Subscription =
Expand Down
Loading

0 comments on commit b3b0a6c

Please sign in to comment.