From efa68fce61b43c83af2f12543e421ea492697b47 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Thu, 27 Apr 2023 11:16:29 +0100 Subject: [PATCH] Merge pull request #12731 from overleaf/jpa-clsi-log-err [clsi] log error when writing to log file fails GitOrigin-RevId: 3f698fd0ecad26fe9782aae6ba9a49c03b8f9923 --- services/clsi/app/js/LatexRunner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/clsi/app/js/LatexRunner.js b/services/clsi/app/js/LatexRunner.js index e8748bd4fe..55769ec2f3 100644 --- a/services/clsi/app/js/LatexRunner.js +++ b/services/clsi/app/js/LatexRunner.js @@ -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() })