You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[POA-2246] Display warning when repro mode flag is used (#91)
This change will display the following warning when the `--repro-mode`
flag is set on a command that supports it:
```
[WARNING] Turning on the --repro-mode flag enbales the Postman Insights Agent to send payload data to the Postman cloud.
The Postman Insights Agent will automatically redact values in a default list of sensitive fields, as well as any additionally specified fields.
For more information, please see: https://postmanlabs.atlassian.net/wiki/spaces/PIIUG/pages/5513740658/Data+handling+and+access#When-Repro-Mode-is-enabled.
```
---
### Previews with various log formats
With `--log-format` set to `color`:
<img width="1172" alt="Screenshot 2025-03-13 at 2 23 15 PM"
src="https://github.com/user-attachments/assets/96f8aad3-023c-45d5-a189-6691c6baadc8"
/>
With `--log-format` set to `plain`:
<img width="1172" alt="Screenshot 2025-03-13 at 2 24 54 PM"
src="https://github.com/user-attachments/assets/2f88e456-0a8c-4245-87ba-27f2ae6f4121"
/>
With `--log-format` set to `json`:
<img width="1172" alt="Screenshot 2025-03-13 at 2 25 47 PM"
src="https://github.com/user-attachments/assets/054ed581-3773-43c4-815f-d3b85d055c8b"
/>
---
### Manual tests
I manually verified, doesn't look like we have a test suite for this,
that the warning is only shown on on commands that actually support the
flag. For example, passing `--repro-mode` to
`./bin/postman-insights-agent kube` or just
`./bin/postman-insights-agent` will display an error:
```
[ERROR] unknown flag: --repro-mode
```
0 commit comments