Skip to content

fix(migtd): apply log level settings to spdmlib - #1052

Merged
sgrams merged 1 commit into
intel:mainfrom
sgrams:fix/spdmlib-release-logging
Oct 12, 2026
Merged

sgrams merged 1 commit into
intel:mainfrom
sgrams:fix/spdmlib-release-logging

Conversation

@sgrams

@sgrams sgrams commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Apply MigTD's selected log level to spdmlib through their shared log crate, without a custom SPDM patch or fork.

  • Honor --log-level off instead of overriding it to info.
  • Apply the documented defaults: off for release builds and info for debug builds.
  • Preserve explicit error, warn, info, debug, and trace settings in both profiles.

Validation

  • cargo test -p xtask log_level_features: passed, covering all six levels and the default in both profiles.
  • cargo fmt -p xtask -- --check: passed.
  • git diff --check: passed.
  • Cargo metadata confirmed that MigTD and spdmlib share the same log package and receive the selected off/info features for both profiles.

Assisted-by: GitHub Copilot:GPT-6 Astra

@sgrams
sgrams requested a review from jyao1 as a code owner September 25, 2026 10:26
@sgrams
sgrams force-pushed the fix/spdmlib-release-logging branch from 2d73baf to dfca245 Compare September 25, 2026 11:25
@sgrams
sgrams marked this pull request as draft September 25, 2026 11:30
@sgrams sgrams changed the title fix(migtd): disable spdmlib logging in release builds fix(migtd): apply log level settings to spdmlib Oct 2, 2026
@sgrams
sgrams force-pushed the fix/spdmlib-release-logging branch 2 times, most recently from 5e53f13 to 0e85216 Compare October 2, 2026 14:34
Use shared log crate features to apply the selected log level to MigTD and spdmlib without a custom SPDM dependency patch. Honor explicit off settings and the documented release-off and debug-info defaults.

Cap debug and trace requests at info in both build profiles. Enforce the same ceiling in native and VMM logger initialization, log-area requests, backend filtering, and direct buffer writes so debug and trace records cannot be emitted.

Cover all log-level selections and profile defaults, and verify debug/trace suppression while preserving info records in provisional and shared log buffers.

Assisted-by: GitHub Copilot:GPT-6 Astra
Signed-off-by: Stanislaw Grams <stanislaw.grams@intel.com>
@sgrams
sgrams force-pushed the fix/spdmlib-release-logging branch from 0e85216 to acb4152 Compare October 2, 2026 15:08
@sgrams
sgrams marked this pull request as ready for review October 7, 2026 09:40
@sgrams sgrams self-assigned this Oct 7, 2026
@sgrams
sgrams merged commit 8753679 into intel:main Oct 12, 2026
61 checks passed
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