Skip to content

Commit

Permalink
style: liqoctl logs on stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiolor committed Feb 5, 2025
1 parent 6f648e2 commit 6025920
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/liqoctl/output/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ func NewGlobalPrinter(scoped, verbose bool) *Printer {
}

func newPrinter(scope string, color pterm.Color, scoped, verbose bool) *Printer {
generic := &pterm.PrefixPrinter{MessageStyle: pterm.NewStyle(pterm.FgDefault)}
generic := &pterm.PrefixPrinter{
MessageStyle: pterm.NewStyle(pterm.FgDefault),
Writer: os.Stderr,
}

if scoped {
generic = generic.WithScope(pterm.Scope{Text: scope, Style: pterm.NewStyle(pterm.FgGray)})
Expand Down Expand Up @@ -311,6 +314,7 @@ func newPrinter(scope string, color pterm.Color, scoped, verbose bool) *Printer
ShowTimer: true,
TimerRoundingFactor: time.Second,
TimerStyle: &pterm.ThemeDefault.TimerStyle,
Writer: os.Stderr,
}

printer.BulletList = &pterm.BulletListPrinter{}
Expand Down

0 comments on commit 6025920

Please sign in to comment.