Removed default debug log from base model when emittingg events

no issue

- we should only log the event if the model was changed
This commit is contained in:
kirrg001 2019-02-23 22:31:56 +01:00
parent 4fb783d4a3
commit aa96334379

View File

@ -173,8 +173,6 @@ ghostBookshelf.Model = ghostBookshelf.Model.extend({
* If the query runs in a txn, `_previousAttributes` will be empty.
*/
emitChange: function (model, event, options) {
debug(model.tableName, event);
const _emit = (ghostEvent, model) => {
if (!model.wasChanged()) {
return;