Consider adding a verbose / debug mode
creack opened this issue · 0 comments
creack commented
It would be nice to have a way to enable more detailed logging. Right now, when something fails, we do have the response dump, but when something works but not as expected, we don't. Having a -d for debug or swapping -v from version to verbose would enable us to enable more detailed logging and make troubleshooting easier.
It would allow us to easily add logs in places difficult to access like https://github.com/cdr/coder-cli/blob/a355dd2b6ec1b8f1969d7b05a0d9aee2aec90129/internal/x/xterminal/terminal.go#L70 and https://github.com/cdr/coder-cli/blob/a355dd2b6ec1b8f1969d7b05a0d9aee2aec90129/internal/x/xterminal/terminal_windows.go#L110 (among others)