From 4b36f14383ab677abb7663fac72df6d543e5c41e Mon Sep 17 00:00:00 2001 From: Boris Sekachev <40690378+bsekachev@users.noreply.github.com> Date: Thu, 17 Jan 2019 17:46:58 +0300 Subject: [PATCH] Some additional logs have been added (#282) --- cvat/apps/engine/static/engine/js/logger.js | 2 ++ cvat/apps/engine/static/engine/js/shapes.js | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/cvat/apps/engine/static/engine/js/logger.js b/cvat/apps/engine/static/engine/js/logger.js index 26a81bd92993..a2ca51852da2 100644 --- a/cvat/apps/engine/static/engine/js/logger.js +++ b/cvat/apps/engine/static/engine/js/logger.js @@ -354,6 +354,7 @@ var Logger = { sendException: 22, // dumped as "Change frame". There are no additional required fields. changeFrame: 23, + debugInfo: 24, }, /** @@ -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'; } }, diff --git a/cvat/apps/engine/static/engine/js/shapes.js b/cvat/apps/engine/static/engine/js/shapes.js index d4d68036ab70..583d8a7fe241 100644 --- a/cvat/apps/engine/static/engine/js/shapes.js +++ b/cvat/apps/engine/static/engine/js/shapes.js @@ -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());