Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WASMTIME_LOG_NO_CONTEXT #9902

Merged
merged 2 commits into from
Dec 26, 2024
Merged

Conversation

SingleAccretion
Copy link
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
@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
39 checks passed
@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