tweak error colors
This commit is contained in:
parent
4c0d40c631
commit
af7fcee50b
@ -21,7 +21,7 @@ var dimmed *color.Color
|
|||||||
func init() {
|
func init() {
|
||||||
bold = color.New(color.Bold)
|
bold = color.New(color.Bold)
|
||||||
bold.EnableColor()
|
bold.EnableColor()
|
||||||
boldRedBG = color.New(color.Bold, color.BgRed)
|
boldRedBG = color.New(color.Bold, color.BgRed, 225)
|
||||||
boldRedBG.EnableColor()
|
boldRedBG.EnableColor()
|
||||||
boldRed = color.New(color.Bold, color.FgHiRed)
|
boldRed = color.New(color.Bold, color.FgHiRed)
|
||||||
boldRed.EnableColor()
|
boldRed.EnableColor()
|
||||||
|
@ -142,7 +142,7 @@ func TestFormatter(t *testing.T) {
|
|||||||
Call: Error,
|
Call: Error,
|
||||||
Level: logrus.InfoLevel,
|
Level: logrus.InfoLevel,
|
||||||
Color: true,
|
Color: true,
|
||||||
Expects: "\033[1;41m ERROR \033[0m message",
|
Expects: "\033[1;41;225m ERROR \033[0m message",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user