support test usecase to not put logs in /var/log

This commit is contained in:
Johannes Zellner
2018-06-04 11:48:22 +02:00
parent 372a17dc37
commit e9400e5dce
4 changed files with 11 additions and 7 deletions

View File

@@ -127,8 +127,8 @@ function startAppTask(appId, callback) {
}
// ensure log folder
mkdirp.sync(path.join(paths.LOG_FOLDER, appId));
var logFilePath = path.join(paths.LOG_FOLDER, appId, 'apptask-' + Date.now() + '.log');
mkdirp.sync(path.join(paths.LOG_DIR, appId));
var logFilePath = path.join(paths.LOG_DIR, appId, 'apptask-' + Date.now() + '.log');
// will autoclose
fs.open(logFilePath, 'w', function (error, fd) {