Skip to content

Commit

Permalink
Emit logging event
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Jan 31, 2012
1 parent 4442b42 commit e9f35fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ Schema.prototype.autoupdate = function (cb) {
}
};

Schema.prototype.log = function () {
Schema.prototype.log = function (sql, t) {
this.emit('log', sql, t);
};

Schema.prototype.freeze = function freeze() {
Expand Down

0 comments on commit e9f35fd

Please sign in to comment.