Skip to content

Commit

Permalink
Refine room event argument logs (#1382)
Browse files Browse the repository at this point in the history
* Refine room event argument logs

* Create fifty-garlics-ring.md

* simplify
  • Loading branch information
lukasIO authored Jan 24, 2025
1 parent 86d32f7 commit 4aa27b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fifty-garlics-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-client": patch
---

Refine room event argument logs
2 changes: 1 addition & 1 deletion src/room/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2304,7 +2304,7 @@ function mapArgs(args: unknown[]): any {
return mapArgs(arg);
}
if (typeof arg === 'object') {
return 'logContext' in arg && arg.logContext;
return 'logContext' in arg ? arg.logContext : undefined;
}
return arg;
});
Expand Down

0 comments on commit 4aa27b3

Please sign in to comment.