Skip to content

Add WASMTIME_LOG_NO_CONTEXT#9902

Merged
pchickey merged 2 commits into
bytecodealliance:mainfrom
SingleAccretion:Log-NoCtx
Dec 26, 2024
Merged

Add WASMTIME_LOG_NO_CONTEXT#9902
pchickey merged 2 commits into
bytecodealliance:mainfrom
SingleAccretion:Log-NoCtx

Conversation

@SingleAccretion
Copy link
Copy Markdown
Contributor

@SingleAccretion SingleAccretion commented Dec 25, 2024

When using trace logging for compiler debugging, the usual 'context': time, level, target, are just visual noise and take up horizontal space.

Add an environment variable to disable them. There is no change to default behavior.

Sample output diff:

- 2024-12-25T20:07:32.459831Z TRACE debug-info-transform: === Begin DIE at 0x0000229a (depth = 2):
+ === Begin DIE at 0x0000229a (depth = 2):
  DW_TAG_GNU_call_site
    DW_AT_abstract_origin (0x000022a4)
    DW_AT_low_pc (ffffffff)

When using trace logging for compiler debugging, the usual
'context': time, level, target, are just visual noise.

Add an environment variable to disable them.
@SingleAccretion SingleAccretion marked this pull request as ready for review December 25, 2024 20:32
@SingleAccretion SingleAccretion requested review from a team as code owners December 25, 2024 20:33
@SingleAccretion SingleAccretion requested review from fitzgen and removed request for a team December 25, 2024 20:33
@github-actions github-actions Bot added the wasmtime:docs Issues related to Wasmtime's documentation label Dec 25, 2024
Comment thread crates/cranelift/src/debug/transform/debug_transform_logging.rs
@pchickey pchickey added this pull request to the merge queue Dec 26, 2024
Merged via the queue into bytecodealliance:main with commit 41ff8e7 Dec 26, 2024
@SingleAccretion SingleAccretion deleted the Log-NoCtx branch December 28, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:docs Issues related to Wasmtime's documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants