-
Notifications
You must be signed in to change notification settings - Fork 466
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
F/remove msg error etc null sentinel #941
F/remove msg error etc null sentinel #941
Conversation
49a9cd3
to
1f6f85a
Compare
👍 |
1f6f85a
to
0955b85
Compare
Rebased to master |
I like the change in general, even though I didn't have too much time to Bazsi On Wed, Mar 2, 2016 at 1:59 PM, Tamas Nagy notifications@github.com wrote:
|
057e117
to
aabcd6d
Compare
Rebased to master. Fixed conflicts by dropping the last commit and reapplying the script described in the commit message. |
👍 (Could you rebase it again? Thanks!) |
6ca8ceb
to
fe48068
Compare
Signed-off-by: bkil-syslogng <tamas.nagy@balabit.com>
Signed-off-by: bkil-syslogng <tamas.nagy@balabit.com>
Signed-off-by: bkil-syslogng <tamas.nagy@balabit.com>
find . -iname .git -prune -false -o -type f -exec \ sed --regexp-extended --silent --in-place --expression " 1h 1! H $ { g s~(\<msg_(fatal|error|warning|notice|info|progress|verbose|debug|trace|warning_once)\ \s*\([^;]*),\s*NULL\s*\)\s*[;]~\1);~g p } " {} + Signed-off-by: bkil-syslogng <tamas.nagy@balabit.com>
fe48068
to
f36548b
Compare
@ihrwein Rebased to master. No conflict or omission detected when running the transformation this time. |
I am afraid I've just merged code that will not be adjusted for this. I would merge this again and fix up the fallout. The change is trivial, makes sense it's just scattered around. Do you have a script to run on the "http" destination? |
@bazsi You can re-run the commit message as many times as you'd like. Do take care to remove any extra space if your tools show messages that way. Actually I wrapped a long sed line in the middle, that's the (only) one you need to consider. I did give this a second thought few days ago, and we may consider saving this under |
msg_error("description", evt_tag_str("when", "before"), NULL); msg_error("description", evt_tag_str("when", "after")); This was the automated transformation done in this pull request: syslog-ng#941 "F/remove msg error etc null sentinel" f36548b "dropped extra NULL sentinel at msg_*() call sites" It was copied from the commit message verbatim, but it may be improved in the future. Signed-off-by: bkil-syslogng <tamas.nagy@balabit.com>
I don't think we need to add this validation from this point on. We don't need it from now period, it may happen that some as-of-now out-of-tree code contains the extra NULL, but we won't write new ones. |
thanks a lot and sorry for breaking things. probably not a good idea to Bazsi On Wed, Apr 13, 2016 at 4:23 PM, Tamas Nagy notifications@github.com
|
msg_error("description", evt_tag_str("when", "before"), NULL);
msg_error("description", evt_tag_str("when", "after"));
Contains a
sed
moster and somevararg
magic.