Print a nicer log message on participant join/part

This makes the logs more readable.
This commit is contained in:
linkmauve 2018-07-23 20:11:47 +02:00 committed by Saúl Ibarra Corretgé
parent 1d99abc4a4
commit faada0abae
1 changed files with 2 additions and 2 deletions

View File

@ -1678,7 +1678,7 @@ export default {
role: user.getRole()
}));
logger.log('USER %s connnected', id, user);
logger.log(`USER ${id} connnected:`, user);
APP.API.notifyUserJoined(id, {
displayName,
formattedDisplayName: appendSuffix(
@ -1698,7 +1698,7 @@ export default {
}
APP.store.dispatch(participantLeft(id, room));
logger.log('USER %s LEFT', id, user);
logger.log(`USER ${id} LEFT:`, user);
APP.API.notifyUserLeft(id);
APP.UI.messageHandler.participantNotification(
user.getDisplayName(),