Feat: Write full message into short_message field#34
Feat: Write full message into short_message field#34valentin-krasontovitsch wants to merge 1 commit intoGraylog2:v2from
Conversation
Following the principle of least surprise, we write messages completely into the `short_message` field, even if they contain several lines. To not break gelf standard, we also write the full message, always, to the `full_message` field. Resolves Graylog2#11
|
Sorry I still don't get what problem you are trying to solve here :/ |
|
Okay well so I mean I dunno this was a long time ago 😅 Let me try to catch up and understand, I was and perhaps still am a bit confused about all this... It seems like part of the discussion is in issue #11 - and there you indeed say
I think that's why I decided to go ahead and remove the full message field. But - that's not up to spec, which is a very good point. SO, then I went ahead and did the (what I thought) reasonable thing of putting the whole message by default into both short and full message field. I'm lazy by nature, so I didn't want to have to compose my own message struct every time... I just wanted to have one function in this lib that I could use and feed with the message I wanted to send. Now I see of course that doubling the amount of data is not convenient. That way, "default" lazy behaviour is what I imagine to be that of least surprise, and we don't get double data, and people can still do whatever they want by using the Does that sound good? |
|
Okay, I see what you mean. We could consider the proposed change but this would defiantly be a breaking change so we would need a new version branch for this. |
Following the principle of least surprise, we write messages completely
into the
short_messagefield, even if they contain several lines.To not break gelf standard, we also write the full message, always, to
the
full_messagefield.Resolves #11