From c77f0bcfa452ac5e808b211d215e273e0e952295 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 8 Feb 2021 14:47:03 +0000 Subject: [PATCH] Fix the %s in logs Finally --- src/CallHandler.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/CallHandler.tsx b/src/CallHandler.tsx index b5d4ed155f..a6d3534fa1 100644 --- a/src/CallHandler.tsx +++ b/src/CallHandler.tsx @@ -583,7 +583,7 @@ export default class CallHandler { return source; }); } else { - console.error("Unknown conf call type: %s", type); + console.error("Unknown conf call type: " + type); } } @@ -617,7 +617,7 @@ export default class CallHandler { const room = MatrixClientPeg.get().getRoom(payload.room_id); if (!room) { - console.error("Room %s does not exist.", payload.room_id); + console.error(`Room ${payload.room_id} does not exist.`); return; } @@ -628,7 +628,7 @@ export default class CallHandler { }); return; } else if (members.length === 2) { - console.info("Place %s call in %s", payload.type, payload.room_id); + console.info(`Place ${payload.type} call in ${payload.room_id}`); this.placeCall(payload.room_id, payload.type, payload.local_element, payload.remote_element); } else { // > 2 @@ -643,17 +643,17 @@ export default class CallHandler { } break; case 'place_conference_call': - console.info("Place conference call in %s", payload.room_id); + console.info("Place conference call in " + payload.room_id); Analytics.trackEvent('voip', 'placeConferenceCall'); CountlyAnalytics.instance.trackStartCall(payload.room_id, payload.type === PlaceCallType.Video, true); this.startCallApp(payload.room_id, payload.type); break; case 'end_conference': - console.info("Terminating conference call in %s", payload.room_id); + console.info("Terminating conference call in " + payload.room_id); this.terminateCallApp(payload.room_id); break; case 'hangup_conference': - console.info("Leaving conference call in %s", payload.room_id); + console.info("Leaving conference call in "+ payload.room_id); this.hangupCallApp(payload.room_id); break; case 'incoming_call':