Skip to content

fix(logging-utils): export LogSeverity as value and treat 'true' as '*' alias - #9718

Open
shivanee-p wants to merge 2 commits into
mainfrom
shivaneep-logging-preparation
Open

shivanee-p wants to merge 2 commits into
mainfrom
shivaneep-logging-preparation

Conversation

@shivanee-p

@shivanee-p shivanee-p commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Exports LogSeverity as a runtime value and treats "true" as "*"

Changes:

  • Export LogSeverity as a value instead of export type in src/index.ts
  • Normalize nodeFlag === 'true' to '*' in DebugLogBackendBase
  • Added unit tests for runtime LogSeverity exports and "true" filter normalization.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the logging-utils package to export LogSeverity as a runtime enum from the index and adds support for treating the "true" environment variable flag as an alias for "*". It also updates the test suite to import from the package index and adds tests for these new behaviors. The review feedback identifies an issue in the new tests where assertions are made on a stale global sink instance instead of the updated configuration; it is recommended to re-assign and register the global sink to ensure the tests are robust and correctly verify the integration.

Comment thread core/packages/logging-utils/test/logging-utils.ts
Comment thread core/packages/logging-utils/test/logging-utils.ts Outdated
@shivanee-p
shivanee-p marked this pull request as ready for review October 23, 2026 20:56
@shivanee-p
shivanee-p requested a review from a team as a code owner October 23, 2026 20:56
@github-actions
github-actions Bot requested a review from quirogas October 23, 2026 20:58

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.

1 participant