Skip to content

Commit 84bc79e

Browse files
committed
fix
1 parent 8f9a396 commit 84bc79e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

console/console_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ func (f logFormat) Format(entry *logrus.Entry) ([]byte, error) {
106106
buf := new(bytes.Buffer)
107107

108108
buf.WriteByte('[')
109-
if hasColor {
109+
if f.hasColor {
110110
buf.WriteString(getLogLevelColorCode(entry.Level))
111111
}
112112
buf.WriteString(strings.ToUpper(entry.Level.String()))
113-
if hasColor {
113+
if f.hasColor {
114114
buf.WriteString(colorReset)
115115
}
116116
buf.WriteString("] ")

0 commit comments

Comments
 (0)