Merge pull request #12731 from overleaf/jpa-clsi-log-err

[clsi] log error when writing to log file fails

GitOrigin-RevId: 3f698fd0ecad26fe9782aae6ba9a49c03b8f9923
This commit is contained in:
Jakob Ackermann 2023-04-27 11:16:29 +01:00 committed by Copybot
parent 426128554d
commit efa68fce61

View file

@ -112,7 +112,7 @@ function _writeLogOutput(projectId, directory, output, callback) {
if (content && content.length > 0) { if (content && content.length > 0) {
fs.writeFile(file, content, err => { fs.writeFile(file, content, err => {
if (err) { if (err) {
logger.error({ projectId, file }, 'error writing log file') // don't fail on error logger.error({ err, projectId, file }, 'error writing log file') // don't fail on error
} }
cb() cb()
}) })