mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
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:
@@ -112,7 +112,7 @@ function _writeLogOutput(projectId, directory, output, callback) {
|
||||
if (content && content.length > 0) {
|
||||
fs.writeFile(file, content, 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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user