misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-10-10 19:23:17 +02:00
commit 058a6865ff
No known key found for this signature in database
GPG key ID: 82E42E7F3B34C97E
5 changed files with 50 additions and 36 deletions

View file

@ -32,8 +32,8 @@ func NewEvent(tag string, data interface{}) Event {
func (e Event) Label() string {
m := e.Data.(LogMessage)
label := log.LevelNames[m.Level]
color := log.LevelColors[m.Level]
label := log.LevelName(m.Level)
color := log.LevelColor(m.Level)
return color + label + tui.RESET
}