diff options
| author | James O'Doherty <james@theodohertyfamily.com> | 2026-06-04 00:21:56 -0400 |
|---|---|---|
| committer | James O'Doherty <james@theodohertyfamily.com> | 2026-06-04 00:21:56 -0400 |
| commit | c53503b52b6fc6de37b6053719521054003fa50b (patch) | |
| tree | aaa6f3ff912365676261a48c39d325023d0a9c38 /tests/e2e/crash_recovery_test.go | |
| parent | 51a0845adba702ac02437405988b24b3b2c9fb45 (diff) | |
clean up debugging prints and silence successful execution output
- Remove leftover DEBUG prints from CLI and wireguard internal packages.
- Silence stdout during successful command wrapping to ensure only the wrapped command's output is visible.
- Redirect all warnings and internal errors to stderr.
- Implement a verbose mode via `WG_WRAP_VERBOSE=1` to enable tunnel status messages.
- Update E2E tests to use verbose mode for verification of tunnel lifecycle events.
- Fix errcheck linting issue in wireguard.go and apply go fmt.
Diffstat (limited to 'tests/e2e/crash_recovery_test.go')
| -rw-r--r-- | tests/e2e/crash_recovery_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/e2e/crash_recovery_test.go b/tests/e2e/crash_recovery_test.go index 618417d..669f25f 100644 --- a/tests/e2e/crash_recovery_test.go +++ b/tests/e2e/crash_recovery_test.go @@ -67,6 +67,7 @@ Endpoint = 1.1.1.1:51820 cmd.Env = append(os.Environ(), fmt.Sprintf("XDG_RUNTIME_DIR=%s", tmpRuntimeDir), fmt.Sprintf("XDG_CONFIG_HOME=%s", tmpConfigDir), + "WG_WRAP_VERBOSE=1", ) out, err := cmd.CombinedOutput() |
