From 1cac2f6170a53f390e5eb324070304af23a0e6a5 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 16 Sep 2025 17:52:12 +0200 Subject: [PATCH] add timestamp to the log --- src/taskworker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/taskworker.js b/src/taskworker.js index e7b8e7536..a5e5028eb 100755 --- a/src/taskworker.js +++ b/src/taskworker.js @@ -72,7 +72,7 @@ async function setupNetworking() { // 50 - internal error , 70 - SIGTERM exit function exitSync(status) { if (status.error) fs.write(logFd, status.error.stack + '\n', function () {}); - fs.write(logFd, `Exiting with code ${status.code}\n`, function () {}); + fs.write(logFd, `${(new Date()).toISOString()} Exiting with code ${status.code}\n`, function () {}); fs.fsyncSync(logFd); fs.closeSync(logFd); process.exit(status.code);