Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhand committed Jul 26, 2024
1 parent 3ee5b6e commit 73aeee2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion functions/interaction/transitionAgentParticipants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ export const handler = TokenValidator(
const results = await Promise.allSettled(
interactionAgentParticipants.map((p) => {
console.log(`Transitioning agent participant ${p.sid} to ${targetStatus}`);
Object.entries(p).forEach(([k, v]) => console.log(`${k}: ${typeof v === 'object' ? JSON.stringify(v) : v}`));
Object.entries(p).forEach(([k, v]) =>
console.log(`${k}: ${typeof v === 'object' ? JSON.stringify(v) : v}`),
);
console.log('routing_properties', JSON.stringify((p as any).routing_properties));
console.log('routingProperties', JSON.stringify((p as any).routingProperties));

return p.update({ status: targetStatus });
}),
);
Expand Down

0 comments on commit 73aeee2

Please sign in to comment.