redis: various fixes

This commit is contained in:
Girish Ramakrishnan
2018-09-18 14:15:23 -07:00
parent 16fab63442
commit cfdb939bff
3 changed files with 67 additions and 52 deletions
+2
View File
@@ -415,8 +415,10 @@ function cleanupLogs(app, callback) {
assert.strictEqual(typeof app, 'object');
assert.strictEqual(typeof callback, 'function');
// note that redis container logs are cleaned up by the addon
rimraf(path.join(paths.LOG_DIR, app.id), function (error) {
if (error) debugApp(app, 'cannot cleanup logs: %s', error);
callback(null);
});
}