Skip to content

Comments

fix(logs): format log level into correct status#1036

Merged
duncanista merged 8 commits intomainfrom
jordan.gonzalez/logs/correctly-format-incoming-level
Feb 20, 2026
Merged

fix(logs): format log level into correct status#1036
duncanista merged 8 commits intomainfrom
jordan.gonzalez/logs/correctly-format-incoming-level

Conversation

@duncanista
Copy link
Contributor

@duncanista duncanista commented Feb 20, 2026

Overview

Log level was not properly formatted for AWS JSON logs – same goes for our own logs where the level was not truly respected.

#807 and SVLS-8590

Testing

Unit tests and on actual resources.

Before logs with debug appeared as info
Screenshot 2026-02-19 at 7 17 12 PM

Now, all appear with their right level:

Screenshot 2026-02-19 at 7 17 55 PM

incoming logs as JSON might contain a level which we want to send as a status in datadog logs, applied to AWS JSON logs and also internal logs
@duncanista duncanista requested a review from a team as a code owner February 20, 2026 00:06
@duncanista duncanista requested a review from lym953 February 20, 2026 00:06
Copy link
Contributor

@lym953 lym953 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

also made escaping more clear
@duncanista duncanista requested a review from lym953 February 20, 2026 19:59
@duncanista duncanista merged commit 3b533a0 into main Feb 20, 2026
50 checks passed
@duncanista duncanista deleted the jordan.gonzalez/logs/correctly-format-incoming-level branch February 20, 2026 20:28
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.

2 participants