fix(JitsiMeetLogStorage): do not log whole message

The logMessage can be very long. Probably only it's length could be
important to why sendApplicationLog has failed. Stringify the error
though.
This commit is contained in:
paweldomas 2018-09-05 15:38:59 -05:00 committed by Saúl Ibarra Corretgé
parent 8fe5814831
commit 3b6e34e96b
1 changed files with 2 additions and 2 deletions

View File

@ -81,10 +81,10 @@ export default class JitsiMeetLogStorage {
try {
conference.sendApplicationLog(logMessage);
} catch (error) {
// FIXME whole objects logged
// NOTE console is intentional here
console.error(
'Failed to store the logs: ', logMessage, error);
`Failed to store the logs, msg length: ${logMessage.length}`
+ `error: ${JSON.stringify(error)}`);
}
}
}