Skip to content

Commit e659fef

Browse files
authored
Added missed fields in exception logs (#1372)
1 parent 1d78c54 commit e659fef

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3232
- Hidden points (or outsided) are visible after changing a frame
3333
- Merge is allowed for points, but clicks on points conflict with frame dragging logic
3434
- Removed objects are visible for search
35+
- Add missed task_id and job_id fields into exception logs for the new UI (https://github.com/opencv/cvat/pull/1372)
3536

3637
### Security
3738
-

cvat-core/src/log.js

+5-10
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,11 @@ class LogWithExceptionInfo extends Log {
195195
}
196196

197197
dump() {
198-
const payload = { ...this.payload };
198+
let body = super.dump();
199+
const payload = body.payload;
199200
const client = detect();
200-
const body = {
201-
client_id: payload.client_id,
202-
name: this.type,
203-
time: this.time.toISOString(),
201+
body = {
202+
...body,
204203
message: payload.message,
205204
filename: payload.filename,
206205
line: payload.line,
@@ -211,17 +210,13 @@ class LogWithExceptionInfo extends Log {
211210
version: client.version,
212211
};
213212

214-
delete payload.client_id;
215213
delete payload.message;
216214
delete payload.filename;
217215
delete payload.line;
218216
delete payload.column;
219217
delete payload.stack;
220218

221-
return {
222-
...body,
223-
payload,
224-
};
219+
return body;
225220
}
226221
}
227222

0 commit comments

Comments
 (0)