tweak error colors

This commit is contained in:
Roberto Hidalgo 2023-03-21 23:12:12 -06:00
parent 4c0d40c631
commit af7fcee50b
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ var dimmed *color.Color
func init() {
bold = color.New(color.Bold)
bold.EnableColor()
boldRedBG = color.New(color.Bold, color.BgRed)
boldRedBG = color.New(color.Bold, color.BgRed, 225)
boldRedBG.EnableColor()
boldRed = color.New(color.Bold, color.FgHiRed)
boldRed.EnableColor()

View File

@ -142,7 +142,7 @@ func TestFormatter(t *testing.T) {
Call: Error,
Level: logrus.InfoLevel,
Color: true,
Expects: "\033[1;41m ERROR \033[0m message",
Expects: "\033[1;41;225m ERROR \033[0m message",
},
}