Skip to content

macros: extract type information from MESSAGE, PROGRAM and HOST #162

Merged
bazsi merged 2 commits intoaxoflow:mainfrom
alltilla:fix-macro-expansion-type
Jun 21, 2024
Merged

macros: extract type information from MESSAGE, PROGRAM and HOST #162
bazsi merged 2 commits intoaxoflow:mainfrom
alltilla:fix-macro-expansion-type

Conversation

@alltilla
Copy link
Member

MESSAGE in particular can contain not just string data, but for example JSON as well.

This is necessary for the $(format-json) function to work properly with a json type MESSAGE.

Kudos to b1oodborne from Discord for finding this issue.

Signed-off-by: Attila Szakacs [email protected]

alltilla added a commit to alltilla/axosyslog that referenced this pull request Jun 11, 2024
Signed-off-by: Attila Szakacs <[email protected]>
@alltilla alltilla force-pushed the fix-macro-expansion-type branch from 94df63b to ad5c5eb Compare June 11, 2024 14:33
alltilla added 2 commits June 11, 2024 18:27
MESSAGE in particular can contain not just string
data, but for example JSON as well.

This is necessary for the $(format-json) function
to work properly with a json type MESSAGE.

Kudos to b1oodborne from Discord for finding this
issue.

Signed-off-by: Attila Szakacs <[email protected]>
Signed-off-by: Attila Szakacs <[email protected]>
@alltilla alltilla force-pushed the fix-macro-expansion-type branch from ad5c5eb to 5b6178e Compare June 11, 2024 16:27
@alltilla
Copy link
Member Author

@bazsi Do you agree with this change?

@bazsi bazsi merged commit 0ef7af9 into axoflow:main Jun 21, 2024
HofiOne pushed a commit to HofiOne/axosyslog that referenced this pull request Mar 13, 2025
Signed-off-by: Attila Szakacs <[email protected]>
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.

3 participants