diff --git a/cmd/root/progress_logger.go b/cmd/root/progress_logger.go index 3d643cadb..4ec21e22f 100644 --- a/cmd/root/progress_logger.go +++ b/cmd/root/progress_logger.go @@ -59,7 +59,7 @@ func initProgressLoggerFlag(cmd *cobra.Command, logFlags *logFlags) *progressLog // Configure defaults from environment, if applicable. // If the provided value is invalid it is ignored. if v, ok := env.Lookup(cmd.Context(), envProgressFormat); ok { - _ = f.ProgressLogFormat.Set(v) + _ = f.Set(v) } flags := cmd.PersistentFlags() diff --git a/libs/cmdio/logger.go b/libs/cmdio/logger.go index 905ec0133..1eebe3b0d 100644 --- a/libs/cmdio/logger.go +++ b/libs/cmdio/logger.go @@ -200,15 +200,11 @@ func (l *Logger) writeAppend(event Event) { func (l *Logger) writeInplace(event Event) { if l.isFirstEvent { // save cursor location - if _, err := l.Writer.Write([]byte("\033[s")); err != nil { - panic(err) - } + _ = l.Writer.Write([]byte("\033[s")) } // move cursor to saved location - if _, err := l.Writer.Write([]byte("\033[u")); err != nil { - panic(err) - } + _ = l.Writer.Write([]byte("\033[u")) // clear from cursor to end of screen _, _ = l.Writer.Write([]byte("\033[0J"))