Skip to content

fix(ocsf): render unknown severity as [UNKN] - #3998

Open
ericcurtin wants to merge 1 commit into
NVIDIA:mainfrom
ericcurtin:fix/3886-ocsf-severity-tag
Open

ericcurtin wants to merge 1 commit into
NVIDIA:mainfrom
ericcurtin:fix/3886-ocsf-severity-tag

Conversation

@ericcurtin

Copy link
Copy Markdown
Contributor

Summary

Unknown and Other severities rendered as [INFO] in shorthand logs. They now render as [UNKN].

Related Issue

Fixes #3886

Changes

  • Add SeverityId::shorthand_tag and use it in format_shorthand.
  • Remove the duplicate severity_tag and severity_char u8 helpers (no other callers).
  • Document [UNKN] in the logging docs.

Testing

  • mise run pre-commit passes
  • Unit tests added/updated
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Derive the shorthand tag from SeverityId and drop the duplicate u8 helpers.

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@copy-pr-bot

copy-pr-bot Bot commented Sep 30, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

This branch has not been deployed

No deployments
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.

OCSF shorthand renders Unknown and Other severities as [INFO]

1 participant