不要怂,就是干,撸起袖子干!

Commit 5d6ec6ef by sdepold

added logging

1 parent 50cdf475
Showing with 7 additions and 1 deletions
......@@ -41,6 +41,12 @@ module.exports = (function() {
migrations.forEach(function(migration) {
chainer.add(migration, 'execute', [options], {
before: function(migration) {
console.log('Executing migration: ' + migration.filename)
},
after: function(migration) {
console.log('Executed migration: ' + migration.filename)
},
success: function(migration, callback) {
saveSuccessfulMigration.call(self, migrations[0], migration, callback)
}
......@@ -48,7 +54,7 @@ module.exports = (function() {
})
chainer
.runSerial()
.runSerial({ skipOnError: true })
.success(function() { emitter.emit('success', null) })
.error(function(err) { emitter.emit('failure', err) })
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!