Skip to content

Commit

Permalink
Added missed fields in exception logs (#1372)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro authored Apr 7, 2020
1 parent 1d78c54 commit e659fef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Hidden points (or outsided) are visible after changing a frame
- Merge is allowed for points, but clicks on points conflict with frame dragging logic
- Removed objects are visible for search
- Add missed task_id and job_id fields into exception logs for the new UI (https://github.com/opencv/cvat/pull/1372)

### Security
-
Expand Down
15 changes: 5 additions & 10 deletions cvat-core/src/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,11 @@ class LogWithExceptionInfo extends Log {
}

dump() {
const payload = { ...this.payload };
let body = super.dump();
const payload = body.payload;
const client = detect();
const body = {
client_id: payload.client_id,
name: this.type,
time: this.time.toISOString(),
body = {
...body,
message: payload.message,
filename: payload.filename,
line: payload.line,
Expand All @@ -211,17 +210,13 @@ class LogWithExceptionInfo extends Log {
version: client.version,
};

delete payload.client_id;
delete payload.message;
delete payload.filename;
delete payload.line;
delete payload.column;
delete payload.stack;

return {
...body,
payload,
};
return body;
}
}

Expand Down

0 comments on commit e659fef

Please sign in to comment.