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

Merge pull request #6965 from antobinary/fix-6963

Refrain from logging on multiple lines
parents 266eb2a5 eda28fff
No related branches found
No related tags found
No related merge requests found
......@@ -22,13 +22,13 @@ const logClient = function (type, log, fullInfo = {}) {
if (typeof log === 'string' || log instanceof String) {
Logger.log({
level: type,
message: `${topic || 'CLIENT'} LOG: ${log}\n`,
message: `${topic || 'CLIENT'} LOG: ${log} `,
meta: logContents,
});
} else {
Logger.log({
level: type,
message: `${topic || 'CLIENT'} LOG: ${JSON.stringify(log)}\n`,
message: `${topic || 'CLIENT'} LOG: ${JSON.stringify(log)} `,
meta: logContents,
});
}
......
......@@ -27,9 +27,8 @@ export default function userResponded({ body }) {
return Logger.error(`Updating Poll responses: ${err}`);
}
return Logger.info(`Updating Poll response (userId: ${userId},
response: ${answerId},
pollId: ${pollId})`);
return Logger.info(`Updating Poll response (userId: ${userId},`
+ `response: ${answerId}, pollId: ${pollId})`);
};
return Polls.update(selector, modifier, cb);
......
......@@ -51,8 +51,8 @@ export default function publishVote(credentials, id, pollAnswerId) { // TODO dis
return Logger.error(`Updating Polls collection: ${err}`);
}
return Logger.info(`Updating Polls collection (meetingId: ${meetingId},
pollId: ${currentPoll.id}!)`);
return Logger.info(`Updating Polls collection (meetingId: ${meetingId}, `
+ `pollId: ${currentPoll.id}!)`);
};
Polls.update(selector, modifier, cb);
......
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