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

FT: Logs should not be able to overwrite reserved fields #69

Closed
wants to merge 2 commits into from

Conversation

rahulreddy
Copy link
Collaborator

Fix #50

@rahulreddy rahulreddy force-pushed the dev/FT/reservedFields branch 2 times, most recently from 9b51877 to c5ff5f6 Compare June 8, 2016 01:41
}

fields.req_id = serializeUids(this.uids);
this.fields.req_id = serializeUids(this.uids);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you want to update "this" for every log entry ? I'm not sure that's what you actually aim for ? (And I wouldn't see the point)

@ghost
Copy link

ghost commented Jun 8, 2016

The objectCopy part is a really good thing, but I'm wondering what you tried to do with the fields object, because it looks like a mistake while trying to do something else.
👎 in the meantime for this PR (due to said mistakes)

*/
setName(name) {
this.fields.name = name;
return name;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't return this instead of name ?

@rahulreddy
Copy link
Collaborator Author

I felt this.fields usage harmless as it gets copied over in SimpleLogger but you are right on augmenting the fields part, that was an oversight on my part. I will change my implementation and open a new PR

@rahulreddy rahulreddy closed this Jun 8, 2016
@ghost ghost deleted the dev/FT/reservedFields branch August 4, 2017 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants