Skip to content

Commit

Permalink
Wire up chainctl stderr to os.Stderr (#1274)
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Johnson <[email protected]>
  • Loading branch information
jonjohnsonjr authored Aug 16, 2024
1 parent ee5c957 commit 6534e9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/apk/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ func (c CGRAuth) AddAuth(ctx context.Context, req *http.Request) error {
}

sometimes.Do(func() {
out, err := exec.CommandContext(ctx, "chainctl", "auth", "token", "--audience", host).Output()
cmd := exec.CommandContext(ctx, "chainctl", "auth", "token", "--audience", host)
cmd.Stderr = os.Stderr
out, err := cmd.Output()
if err != nil {
log.Warnf("Error running `chainctl auth token`: %v", err)
return
Expand Down

0 comments on commit 6534e9c

Please sign in to comment.