feat(cli/ssh): simplify log file flags (#7863)

And, fix a race condition.
This commit is contained in:
Ammar Bandukwala
2023-06-12 09:18:33 +04:00
committed by GitHub
parent ec7b117878
commit 5de1084639
5 changed files with 92 additions and 77 deletions
+2 -12
View File
@@ -39,24 +39,14 @@ Specifies whether to forward the GPG agent. Unsupported on Windows workspaces, b
Specifies which identity agent to use (overrides $SSH_AUTH_SOCK), forward agent must also be enabled.
### --log-dir
### -l, --log-dir
| | |
| ----------- | ------------------------------- |
| Type | <code>string</code> |
| Environment | <code>$CODER_SSH_LOG_DIR</code> |
| Default | <code>/tmp</code> |
Specify the location for the log files.
### -l, --log-to-file
| | |
| ----------- | ----------------------------------- |
| Type | <code>bool</code> |
| Environment | <code>$CODER_SSH_LOG_TO_FILE</code> |
Enable diagnostic logging to file.
Specify the directory containing SSH diagnostic log files.
### --no-wait