Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Az/fix logs #1372

Merged
merged 4 commits into from
Apr 7, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
- Exception logs in the new UI (missed fields: task_id and job_id)
nmanovic marked this conversation as resolved.
Show resolved Hide resolved

### 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