Skip to content

Commit df76946

Browse files
authored
Merge pull request #164 from CS3219-AY2425S1/fix/audio-call
Add debug logs for audio call
2 parents 2abe3b7 + f88e1b6 commit df76946

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

peerprep-fe/src/app/collaboration/components/AudioSharing.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ const AudioSharing = () => {
2626
const TURN_CREDENTIAL = process.env.NEXT_PUBLIC_TURN_PASSWORD;
2727

2828
if (!TURN_SERVER || !TURN_USERNAME || !TURN_CREDENTIAL) {
29-
console.error(TURN_SERVER);
30-
console.error(TURN_USERNAME);
31-
console.error(TURN_CREDENTIAL);
29+
// Log which specific variables are missing
30+
console.error('Missing TURN config:', {
31+
server: !!TURN_SERVER,
32+
username: !!TURN_USERNAME,
33+
credential: !!TURN_CREDENTIAL,
34+
});
3235
}
33-
3436
const cleanupAudio = () => {
3537
if (audioStreamRef.current) {
3638
audioStreamRef.current.getTracks().forEach((track) => {

0 commit comments

Comments
 (0)