Emit logging event

This commit is contained in:
Anatoliy Chakkaev 2012-01-31 13:25:44 +04:00
parent 4442b42ace
commit e9f35fd7fd
1 changed files with 2 additions and 1 deletions

View File

@ -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() {