Skip to content

Commit

Permalink
use error/info consts for associated logging funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhelfand committed Mar 17, 2021
1 parent 97cc12d commit 3b3ca95
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/kapp/logger/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import (
)

const (
// nolint: deadcode,unused
loggerLevelError = "error"
// nolint: deadcode,unused
loggerLevelInfo = "info"
loggerLevelDebug = "debug"
)
Expand All @@ -31,11 +29,11 @@ func NewUILogger(ui ui.UI) *UILogger { return &UILogger{"", ui, false} }
func (l *UILogger) SetDebug(debug bool) { l.debug = debug }

func (l *UILogger) Error(msg string, args ...interface{}) {
l.ui.BeginLinef(l.msg(loggerLevelDebug, msg), args...)
l.ui.BeginLinef(l.msg(loggerLevelError, msg), args...)
}

func (l *UILogger) Info(msg string, args ...interface{}) {
l.ui.BeginLinef(l.msg(loggerLevelDebug, msg), args...)
l.ui.BeginLinef(l.msg(loggerLevelInfo, msg), args...)
}

func (l *UILogger) Debug(msg string, args ...interface{}) {
Expand Down

0 comments on commit 3b3ca95

Please sign in to comment.