Skip to content

Commit

Permalink
web-rtc: Move groupcollapsed print to debug console
Browse files Browse the repository at this point in the history
The `groupcollapsed` method does not work in debug console, so the message was being partially printed in the `log` console.
  • Loading branch information
rafaellehmkuhl authored and patrickelectric committed Dec 15, 2023
1 parent de07ca2 commit adbb80f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/composables/webRTC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,11 @@ export class WebRTCManager {
track.contentHint = 'motion'
})

console.groupCollapsed('[WebRTC] Track added')
console.debug('[WebRTC] Track added')
console.debug('Event:', event)
console.debug('Settings:', event.track.getSettings?.())
console.debug('Constraints:', event.track.getConstraints?.())
console.debug('Capabilities:', event.track.getCapabilities?.())
console.groupEnd()
}

/**
Expand Down

0 comments on commit adbb80f

Please sign in to comment.