Skip to content

Commit 61db6de

Browse files
committed
Added debug log to Base model: emitChange
no issue - helpful for debugging model events - DEBUG=ghost:models:base node index.js
1 parent 3a95d0a commit 61db6de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/server/models/base/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ ghostBookshelf.Model = ghostBookshelf.Model.extend({
113113
* If the query runs in a txn, `_previousAttributes` will be empty.
114114
*/
115115
emitChange: function (model, event, options) {
116+
debug(model.tableName, event);
117+
116118
const previousAttributes = model._previousAttributes;
117119

118120
if (!options.transacting) {

0 commit comments

Comments
 (0)