Skip to content

Commit

Permalink
addressed benign warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew O'Meara committed Oct 6, 2021
1 parent 21f168d commit 14bc913
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions klog_format.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ const (

// 256 color palette mode
const (
StdInfoColor byte = 139
StdErrColor = 196
StdWarnColor = 166
StdInfoColor = byte(139)
StdErrColor = 196
StdWarnColor = 166
)
2 changes: 1 addition & 1 deletion klogr/klogr.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func pretty(value interface{}) string {
encoder := json.NewEncoder(buffer)
encoder.SetEscapeHTML(false)
encoder.Encode(value)
return strings.TrimSpace(string(buffer.Bytes()))
return strings.TrimSpace(buffer.String())
}

func (l klogger) Info(msg string, kvList ...interface{}) {
Expand Down

0 comments on commit 14bc913

Please sign in to comment.