Skip to content

Commit

Permalink
renamed logger Event class (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro authored and nmanovic committed Apr 5, 2019
1 parent 7ce6eb6 commit aa02a04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cvat/apps/engine/static/engine/js/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,15 @@ are Logger.EventType.addObject, Logger.EventType.deleteObject and
Logger.EventType.sendTaskInfo. Value of "count" property should be a number.
*/

class Event {
class LoggerEvent {
constructor(type, message) {
this._time = new Date().toISOString();

this._clientId = null;
this._jobId = null;
this._type = type;
this._message = message;
}

serialize() {
let serializedObj = {
job_id: this._jobId,
Expand Down Expand Up @@ -253,7 +253,7 @@ var Logger = {
* @param {Object} values Any event values, for example {count: 1, label: 'vehicle'}
* @param {Function} closeCallback callback function which will be called by close method. Setted by
*/
LogEvent: class extends Event {
LogEvent: class extends LoggerEvent {
constructor(type, values, message) {
super(type, message);

Expand Down Expand Up @@ -284,7 +284,7 @@ var Logger = {
};
},

ExceptionEvent: class extends Event {
ExceptionEvent: class extends LoggerEvent {
constructor(message, filename, line, column, stack, client, system) {
super(Logger.EventType.sendException, message);

Expand Down

0 comments on commit aa02a04

Please sign in to comment.