Skip to content

Commit 2cf6099

Browse files
JeffreyDallasclaude
andcommitted
docs: show the real two-line shape of the withheld-variable log
The snippet put variable names on the summary line. Solo actually writes a summary ending in "for that command:" and then one or more "withheld from '<command>':" lines carrying the names, so a reader comparing the example to their own log would not find a match. Replaces it with output copied from a real run and explains that searching for a variable name lands on the second line, which also identifies the command. Related to hiero-ledger/solo#5895 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
1 parent 2abdafc commit 2cf6099

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

content/en/docs/advanced-solo-setup/subprocess-environment-filtering.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@ Select-String -Path "$HOME\.solo\logs\solo.log" -Pattern "MY_VARIABLE"
4141
{{% /tab %}}
4242
{{< /tabpane >}}
4343

44-
A withheld variable appears in a line like:
44+
Solo writes a summary line followed by one or more lines carrying the names, so your variable
45+
appears on a `withheld from` line rather than in the summary:
4546

4647
```text
47-
Withheld 83 environment variable(s) from 'helm' commands because they are not on the
48-
allowlist for that command: AI_AGENT, ..., MY_VARIABLE, ...
48+
[19:45:49.621] INFO: Withheld 83 environment variable(s) from 'helm' commands because they are not on the allowlist for that command:
49+
[19:45:49.621] INFO: withheld from 'helm': AI_AGENT, APPLICATION_INSIGHTS_NO_STATSBEAT, ..., MY_VARIABLE, ...
4950
```
5051

52+
Searching for the variable name finds the second line, which also tells you which command withheld
53+
it. To see everything withheld from one command instead, search for `withheld from 'helm'`.
54+
5155
This is logged at `info`, so it is present in the log by default — you do not need to re-run
5256
with `--debug`. It is emitted once per command type per run, and long lists are split across
5357
several lines so that every name remains searchable.

0 commit comments

Comments
 (0)