Skip to content

Commit

Permalink
Some additional logs have been added (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev authored and nmanovic committed Jan 17, 2019
1 parent 95aa518 commit 4b36f14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cvat/apps/engine/static/engine/js/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ var Logger = {
sendException: 22,
// dumped as "Change frame". There are no additional required fields.
changeFrame: 23,
debugInfo: 24,
},

/**
Expand Down Expand Up @@ -515,6 +516,7 @@ var Logger = {
case this.EventType.sendUserActivity: return 'Send user activity';
case this.EventType.sendException: return 'Send exception';
case this.EventType.changeFrame: return 'Change frame';
case this.EventType.debugInfo: return 'Debug info';
default: return 'Unknown';
}
},
Expand Down
10 changes: 10 additions & 0 deletions cvat/apps/engine/static/engine/js/shapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1475,9 +1475,19 @@ class ShapeView extends Listener {
blurAllElements();
this._hideShapeText();
this.notify('resize');

Logger.addEvent(Logger.EventType.debugInfo, {
debugMessage: "Resize has started",
resizeEventInitialized: Boolean(events.resize)
});
}).on('resizing', () => {
objWasResized = true;
}).on('resizedone', () => {
Logger.addEvent(Logger.EventType.debugInfo, {
debugMessage: "Resize has done",
resizeEventInitialized: Boolean(events.resize)
});

if (objWasResized) {
let frame = window.cvat.player.frames.current;
this._controller.updatePosition(frame, this._buildPosition());
Expand Down

0 comments on commit 4b36f14

Please sign in to comment.