Commit afb7cf4
committed
fix(dream-cli): route log() and warn() to stderr
dream benchmark captures cmd_chat's stdout to measure LLM
response timing. Because log() wrote to stdout, the
'[dream] Sending to <model>...' info line emitted inside
cmd_chat leaked into the captured response string.
Appending >&2 to log() and warn() routes their informational
output to stderr, which is also where Unix convention puts
non-data messages. The only $(cmd_*) capture in the file
(cmd_benchmark line 1174) already uses 2>/dev/null, so the
log banner is now cleanly discarded before display.
Minimal 2-line scope. Other helpers (success, error,
log_warn) left on stdout per explicit scope decision.1 parent d5154c3 commit afb7cf4
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments