AudioPlayer: Logging when changing playback or queue

This commit is contained in:
Scott Nonnenberg 2023-04-11 10:28:04 -07:00 committed by GitHub
parent 5574b08f4c
commit ea2083cd11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 11 deletions

View file

@ -55,6 +55,8 @@ export async function sendReceipts({
return;
}
log.info(`Starting receipt send of type ${type}`);
const receiptsBySenderId: Map<string, Array<Receipt>> = receipts.reduce(
(result, receipt) => {
const { senderE164, senderUuid } = receipt;
@ -116,6 +118,8 @@ export async function sendReceipts({
return;
}
log.info(`Sending receipt of type ${type} to ${sender.idForLogging()}`);
const sendOptions = await getSendOptions(sender.attributes);
const batches = chunk(receiptsForSender, CHUNK_SIZE);