Permalink
Browse files

common/loggers: Improve log color regexp

To avoid coloring WARNING inside log errors.
  • Loading branch information...
bep committed Nov 1, 2018
1 parent b2a676f commit d3a98325c31d7f02f0762e589a4986e55b2a0da2
Showing with 1 addition and 1 deletion.
  1. +1 −1 common/loggers/loggers.go
@@ -82,7 +82,7 @@ func NewErrorLogger() *Logger {
var (
ansiColorRe = regexp.MustCompile("(?s)\\033\\[\\d*(;\\d*)*m")
errorRe = regexp.MustCompile("(ERROR|FATAL|WARN)")
errorRe = regexp.MustCompile("^(ERROR|FATAL|WARN)")
)
type ansiCleaner struct {

0 comments on commit d3a9832

Please sign in to comment.