diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-01 09:33:32 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-01 09:33:32 +0100 |
commit | d3a98325c31d7f02f0762e589a4986e55b2a0da2 (patch) | |
tree | c6ed89774721c7184261c128c58639cde0c69292 /common/loggers/loggers.go | |
parent | b2a676f5f09a3eea360887b099b9d5fc25a88492 (diff) |
common/loggers: Improve log color regexp
To avoid coloring WARNING inside log errors.
Diffstat (limited to 'common/loggers/loggers.go')
-rw-r--r-- | common/loggers/loggers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/loggers/loggers.go b/common/loggers/loggers.go index 0a9c7da68..9d0f4f629 100644 --- a/common/loggers/loggers.go +++ b/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 { |