mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 07:04:48 +00:00
fix: default logging to stdout with configurable target (#91)
This commit is contained in:
parent
375d73e4cb
commit
f09ed7cb9a
3 changed files with 24 additions and 7 deletions
|
|
@ -9,7 +9,8 @@ This plan captures OpenCode TUI output and sends input via tmux so we can valida
|
|||
|
||||
## Environment
|
||||
- `SANDBOX_AGENT_LOG_DIR=/path` to set server log dir
|
||||
- `SANDBOX_AGENT_LOG_STDOUT=1` to keep logs on stdout/stderr
|
||||
- `SANDBOX_AGENT_LOG_TO_FILE=1` to redirect logs to files
|
||||
- `SANDBOX_AGENT_LOG_STDOUT=1` to force logs on stdout/stderr
|
||||
- `SANDBOX_AGENT_LOG_HTTP=0` to disable request logs
|
||||
- `SANDBOX_AGENT_LOG_HTTP_HEADERS=1` to include request headers (Authorization redacted)
|
||||
- `RUST_LOG=...` for trace filtering
|
||||
|
|
@ -42,7 +43,7 @@ This plan captures OpenCode TUI output and sends input via tmux so we can valida
|
|||
```bash
|
||||
tmux capture-pane -pt opencode:0.0 -S -200 > /tmp/opencode-screen.txt
|
||||
```
|
||||
6. Inspect server logs for requests:
|
||||
6. Inspect server logs for requests (when log-to-file is enabled):
|
||||
```bash
|
||||
tail -n 200 ~/.local/share/sandbox-agent/logs/log-$(date +%m-%d-%y)
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue