Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
  • Loading branch information
jrasell and lgfa29 authored Apr 3, 2023
1 parent ddab4e6 commit 6f889d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions command/alloc_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Logs Specific Options:
-stdout
Display stdout logs. This is used as the default value in all commands
expect when using the "-f" flag where both stdout and stderr are used as
except when using the "-f" flag where both stdout and stderr are used as
default.
-stderr
Expand Down Expand Up @@ -129,8 +129,8 @@ func (l *AllocLogsCommand) Run(args []string) int {
flags.BoolVar(&l.job, "job", false, "")
flags.BoolVar(&l.tail, "tail", false, "")
flags.BoolVar(&l.follow, "f", false, "")
flags.BoolVar(&l.stderr, api.FSLogNameStderr, false, "")
flags.BoolVar(&l.stdout, api.FSLogNameStdout, false, "")
flags.BoolVar(&l.stderr, "stderr", false, "")
flags.BoolVar(&l.stdout, "stdout", false, "")
flags.Int64Var(&l.numLines, "n", -1, "")
flags.Int64Var(&l.numBytes, "c", -1, "")
flags.StringVar(&l.task, "task", "", "")
Expand Down
2 changes: 1 addition & 1 deletion website/content/docs/commands/alloc/logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ When ACLs are enabled, this command requires a token with the `read-logs`,
## Logs Options

- `-stdout`: Display stdout logs. This is used as the default value in all
commands expect when using the `-f` flag where both stdout and stderr are
commands except when using the `-f` flag where both stdout and stderr are
used as default.

- `-stderr`: Display stderr logs.
Expand Down

0 comments on commit 6f889d8

Please sign in to comment.