Browse Source

Print a nicer log message on participant join/part

This makes the logs more readable.
master
linkmauve 7 years ago
parent
commit
faada0abae
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      conference.js

+ 2
- 2
conference.js View File

@@ -1678,7 +1678,7 @@ export default {
1678 1678
                 role: user.getRole()
1679 1679
             }));
1680 1680
 
1681
-            logger.log('USER %s connnected', id, user);
1681
+            logger.log(`USER ${id} connnected:`, user);
1682 1682
             APP.API.notifyUserJoined(id, {
1683 1683
                 displayName,
1684 1684
                 formattedDisplayName: appendSuffix(
@@ -1698,7 +1698,7 @@ export default {
1698 1698
             }
1699 1699
 
1700 1700
             APP.store.dispatch(participantLeft(id, room));
1701
-            logger.log('USER %s LEFT', id, user);
1701
+            logger.log(`USER ${id} LEFT:`, user);
1702 1702
             APP.API.notifyUserLeft(id);
1703 1703
             APP.UI.messageHandler.participantNotification(
1704 1704
                 user.getDisplayName(),

Loading…
Cancel
Save