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
+2 -4
View File
@@ -329,10 +329,8 @@ function cleanupLogs(app, callback) {
assert.strictEqual(typeof app, 'object');
assert.strictEqual(typeof callback, 'function');
const logFolder = path.join(paths.LOG_FOLDER, app.id);
rimraf(logFolder, function (error) {
if (error) debugApp(app, 'cannot cleanup logs at %s: %s', logFolder, error);
rimraf(path.join(paths.LOG_DIR, app.id), function (error) {
if (error) debugApp(app, 'cannot cleanup logs: %s', error);
callback(null);
});
}