-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pkg/stanza] Fix bug where original severity text was not preserved (#…
…13265) When converting from entry.Entry to plog.Logs, the severity text was not copied over. Instead, it was automatically assigned based on the severity number. This change does two things: 1. If the severity text is not empty, it is preserved 2. If the severity text is empty, it is assigned based on the severity number. However, the values assigned were also incorrect, in that they did not match the case defined in the data model. Previously, a capitalized style (eg "Info") was used. Now, an all caps style is used. It is rare that severity number is specified while severity text is not, but the data model explicitly calls for this handling, so it is implemented as such.
- Loading branch information
1 parent
4f635e7
commit 2793d7d
Showing
3 changed files
with
127 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: breaking | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: "`filelog`, `journald`, `syslog`, `tcplog`, `udplog`, and `windowseventlog` receivers" | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Fix a bug where original severity text was not preserved. | ||
|
||
# One or more tracking issues related to the change | ||
issues: [13263] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: |