Put all apptask logs of an app in the same log file

This commit is contained in:
Johannes Zellner
2018-06-04 20:22:32 +02:00
parent e9400e5dce
commit 8fa99fae1a
2 changed files with 4 additions and 2 deletions

View File

@@ -785,6 +785,8 @@ function startTask(appId, callback) {
if (require.main === module) {
assert.strictEqual(process.argv.length, 3, 'Pass the appid as argument');
// add a separator for the log file
debug('------------------------------------------------------------');
debug('Apptask for %s', process.argv[2]);
process.on('SIGTERM', function () {