Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Remove unnecessary check in conversion of log_msg to a JSON #3067
Remove unnecessary check in conversion of log_msg to a JSON #3067
Changes from 17 commits
7d9d01f
e8f7749
d488c3a
5acb02b
e20297c
4585277
8d33056
9e8b84a
8735fbf
a4c1106
0a6ee7e
4188fbe
3a96a08
7fcc7ee
22fb575
afc5b5f
3f70c29
e24b50c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if you don't find this substring?
should you give a warning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should add other arguments in StructExpression to this {} like in your example below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you replace the type? If this type is used in other places besides the logmsg call it should remain in the program. So you should append the new type, not replace the old one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you, please, suggest a place where is I can to insert new type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this type couldn't be used in other places, because it should be unique for each log_msg function and each log_msg function will be replace for new one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type you generate is new, but you could have something like this:
In this case you don't want to remove the type S and replace it with your new generated type.
The new type should be inserted right before the control/parser/action that calls log_msg.