From 6f889d82047d01cd4dca8e2896a31201c1c0cff7 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Mon, 3 Apr 2023 12:01:03 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Luiz Aoqui --- command/alloc_logs.go | 6 +++--- website/content/docs/commands/alloc/logs.mdx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/command/alloc_logs.go b/command/alloc_logs.go index 72cfd587d7d..9caa4f368f6 100644 --- a/command/alloc_logs.go +++ b/command/alloc_logs.go @@ -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 @@ -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", "", "") diff --git a/website/content/docs/commands/alloc/logs.mdx b/website/content/docs/commands/alloc/logs.mdx index 5b2383a3029..c94a7f4f0ca 100644 --- a/website/content/docs/commands/alloc/logs.mdx +++ b/website/content/docs/commands/alloc/logs.mdx @@ -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.