Skip to content
Snippets Groups Projects
Unverified Commit d3da7259 authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #6340 from antobinary/logs-post

Handle logs that cannot be stringified/parsed
parents 69873070 dbb2a63d
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,14 @@ class JoinHandler extends Component { ...@@ -101,7 +101,14 @@ class JoinHandler extends Component {
.then((resp) => { .then((resp) => {
setLogoutURL(resp.logoutURL); setLogoutURL(resp.logoutURL);
if (resp.returncode !== 'FAILED') { if (resp.returncode !== 'FAILED') {
logger.info(`User successfully went through main.joinRouteHandler with [${JSON.stringify(resp)}].`); let logString;
try {
logString = JSON.stringify(resp);
} catch (e) {
logger.error(`Could not stringify object ${resp}`)
logString = resp;
}
logger.info(`User successfully went through main.joinRouteHandler with [${logString}].`);
return resolve(resp); return resolve(resp);
} }
const e = new Error('Session not found'); const e = new Error('Session not found');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment