Print a nicer log message on participant join/part

This makes the logs more readable.
This commit is contained in:
linkmauve
2018-08-14 10:53:18 +02:00
committed by Saúl Ibarra Corretgé
parent 1d99abc4a4
commit faada0abae
+2 -2
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(),