mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
parent
426128554d
commit
efa68fce61
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue