Skip to content

Commit 2efa2ef

Browse files
committed
feat: enable RUST_LOG=trace for all WAC binary invocations
- Added RUST_LOG=trace environment variable to wac_compose, wac_plug, and wac_remote_compose rules - Enables detailed trace logging for debugging WAC composition issues - Helps troubleshoot component loading, package resolution, and dependency issues - Logging appears in Bazel build output when WAC operations are executed This provides permanent trace-level visibility into WAC operations for easier debugging of composition failures.
1 parent 76ad36f commit 2efa2ef

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

wac/wac_compose.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ def _wac_compose_impl(ctx):
132132
# Disable network access to prevent registry lookups
133133
"NO_PROXY": "*",
134134
"no_proxy": "*",
135+
# Enable trace logging for debugging WAC issues
136+
"RUST_LOG": "trace",
135137
},
136138
)
137139

wac/wac_plug.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def _wac_plug_impl(ctx):
4141
outputs = [composed_wasm],
4242
mnemonic = "WacPlug",
4343
progress_message = "Plugging WASM components for %s" % ctx.label,
44+
env = {
45+
# Enable trace logging for debugging WAC issues
46+
"RUST_LOG": "trace",
47+
},
4448
)
4549

4650
# Return provider

wac/wac_remote_compose.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ def _wac_remote_compose_impl(ctx):
186186
# Disable network access to prevent registry lookups during composition
187187
"NO_PROXY": "*",
188188
"no_proxy": "*",
189+
# Enable trace logging for debugging WAC issues
190+
"RUST_LOG": "trace",
189191
},
190192
)
191193

0 commit comments

Comments
 (0)