Skip to content

Commit

Permalink
Merge pull request #747 from vector-im/dbkr/create_room_logging
Browse files Browse the repository at this point in the history
Make room / call creation logging more accurate
  • Loading branch information
dbkr authored Nov 10, 2022
2 parents d868841 + ab860b8 commit 24299c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/matrix-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export async function createRoom(
name: string,
ptt: boolean
): Promise<[string, string]> {
logger.log(`Creating room for group call`);
const createPromise = client.createRoom({
visibility: Visibility.Private,
preset: Preset.PublicChat,
Expand Down Expand Up @@ -276,7 +277,9 @@ export async function createRoom(

const result = await createPromise;

console.log(`Creating ${ptt ? "PTT" : "video"} group call room`);
logger.log(
`Creating ${ptt ? "PTT" : "video"} group call in ${result.room_id}`
);

await client.createGroupCall(
result.room_id,
Expand Down

0 comments on commit 24299c0

Please sign in to comment.