Skip to content

Commit

Permalink
remove debug console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgamis-msft committed Jan 28, 2025
1 parent a22f8b7 commit 55ef2ee
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion packages/calling-stateful-client/src/CallContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ export class CallContext {
}

public modifyState(modifier: (draft: CallClientState) => void): void {
console.log('DEBUG modifyState');
const priorState = this._state;
this._state = produce(this._state, modifier, (patches: Patch[]) => {
if (getLogLevel() === 'verbose') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,6 @@ export class AzureCommunicationCallAdapter<AgentType extends CallAgent | TeamsCa
this.context.setCurrentCallId(this.call.id);
}

console.log(
'DEBUGV clientState.calls: ',
Object.values(clientState.calls)
.map((c) => `id:${c.id}-state:${c.state}-assignedBR:${c.breakoutRooms?.assignedBreakoutRoom?.call?.id}`)
.join(', ')
);

// if the call hits the connected state we want to pause all calling sounds if playing.
if (this.call?.state === 'Connected' && this.callingSoundSubscriber?.playingSounds) {
this.callingSoundSubscriber.pauseSounds();
Expand Down Expand Up @@ -1215,7 +1208,6 @@ export class AzureCommunicationCallAdapter<AgentType extends CallAgent | TeamsCa
/* @conditional-compile-remove(breakout-rooms) */
public async returnFromBreakoutRoom(): Promise<void> {
const callState = this.call?.id ? this.callClient.getState().calls[this.call.id] : undefined;
console.log('DEBUGJ returnFromBreakoutRoom callState?.breakoutRooms: ', callState?.breakoutRooms);
const assignedBreakoutRoom = callState?.breakoutRooms?.assignedBreakoutRoom;

if (!assignedBreakoutRoom) {
Expand Down Expand Up @@ -1500,11 +1492,7 @@ export class AzureCommunicationCallAdapter<AgentType extends CallAgent | TeamsCa
if (!this.call?.id) {
return;
}
console.log(
`DEBUGJ assignedBreakoutRoomUpdated this.originCall?.id: ${this.originCall?.id}, this.call?.id: ${this.call?.id}, breakoutRoom.state: ${breakoutRoom?.state}`
);
if (this.originCall?.id !== this.call?.id && (!breakoutRoom || breakoutRoom.state === 'closed')) {
console.log('DEBUGJ breakout room closed!!!');
this.returnFromBreakoutRoom();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,6 @@ export const getCallCompositePage: GetCallCompositePageFunction = (
return 'transferring';
}

console.log('DEBUGS call?.id ', call?.id);
console.log('DEBUGS call?.state ', call?.state);
console.log('DEBUGS call?.breakoutRooms ', call?.breakoutRooms);
console.log('DEBUGS previousCall?.breakoutRooms ', previousCall?.breakoutRooms);
/* @conditional-compile-remove(breakout-rooms) */
if (
(call?.state === 'Disconnecting' || call?.state === 'Disconnected' || !call) &&
Expand Down

0 comments on commit 55ef2ee

Please sign in to comment.