Skip to content

add more debug logs and more granular logger instances#1909

Draft
lukasIO wants to merge 2 commits intolukas/logging-1from
lukas/logging-2
Draft

add more debug logs and more granular logger instances#1909
lukasIO wants to merge 2 commits intolukas/logging-1from
lukas/logging-2

Conversation

@lukasIO
Copy link
Copy Markdown
Contributor

@lukasIO lukasIO commented Apr 21, 2026

  • added debug logs for active-state transition, metadata/name/attributes changes, permission change, connection quality change, and addTrackPublication.
  • src/room/track/Track.ts — wired ctxFn; updateLoggerOptions now preserves it; added debug for attach/detach, stop, and stream-state transitions; migrated attach playback warn/debug off the module logger onto this.log.
  • src/room/PCTransport.ts — wired ctxFn and a dedicated iceLog = getLogger(LoggerNames.ICE, …); added debug for local ICE candidates, ICE candidate errors, ICE connection state, signaling state, connection state, data channel opens, remote-candidate queuing/flushing, ICE restart, and peer-connection close; all ...this.logContext spreads removed.
  • src/room/PCTransportManager.ts — wired ctxFn + iceLog; ICE-restart at info, remote-candidate add at debug; configuration update at debug; cleaned up remaining ...this.logContext.
  • src/room/RegionUrlProvider.ts — switched to the new Region logger; promoted "next region" to info as a user-facing lifecycle event.
  • src/room/data-track/outgoing/OutgoingDataTrackManager.ts — added debug for publish/unpublish request, SFU accept/reject.
  • src/room/data-track/incoming/IncomingDataTrackManager.ts — added debug for remote track published/unpublished and subscription activation.

Note

LLM gen

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 21, 2026

⚠️ No Changeset found

Latest commit: 9b667cf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant