chore(deployment): add logs to tell about pre-deploy

Otherwise there was a long period of time without any input on what's going on
This commit is contained in:
Jonathan Rainville 2018-12-12 11:09:05 -05:00
parent 94a8bada7e
commit d6de169572
1 changed files with 8 additions and 1 deletions

View File

@ -52,7 +52,14 @@ class DeployManager {
self.logger.info(__("deploying contracts")); self.logger.info(__("deploying contracts"));
async.waterfall([ async.waterfall([
function (next) { function (next) {
self.plugins.emitAndRunActionsForEvent("deploy:beforeAll", next); self.logger.info(__('Executing pre-deploy actions...'));
self.plugins.emitAndRunActionsForEvent("deploy:beforeAll", (err) => {
if (err) {
return next(err);
}
self.logger.info(__('Pre-deploy actions done. Deploying contracts'));
next();
});
}, },
function () { function () {
const contractDeploys = {}; const contractDeploys = {};