fix: better log message when setting exporting status

This commit is contained in:
Joao Victor 2022-07-21 16:39:19 -03:00
parent 854dcf5a93
commit 2f623a2731

View File

@ -22,9 +22,10 @@ export default function setPresentationExporting(meetingId, presentationId, expo
const { numberAffected } = Presentations.upsert(selector, modifier);
if (numberAffected) {
Logger.info(`Set exporting status on presentation {${presentationId} in meeting {${meetingId}}`);
const status = `isRunning=${exportation.isRunning} error=${exportation.error}`;
Logger.info(`Set exporting status on presentation ${presentationId} in meeting ${meetingId} ${status}`);
}
} catch (err) {
Logger.error(`Could not set exporting status on pres {${presentationId} in meeting {${meetingId}} ${err}`);
Logger.error(`Could not set exporting status on pres ${presentationId} in meeting ${meetingId} ${err}`);
}
}