浏览代码

Print a nicer log message on participant join/part

This makes the logs more readable.
master
linkmauve 7 年前
父节点
当前提交
faada0abae
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      conference.js

+ 2
- 2
conference.js 查看文件

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

正在加载...
取消
保存