3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

remove log type sanitization

This commit is contained in:
Shivaram Lingamneni 2020-04-12 13:19:47 -04:00
parent 867b233585
commit 6e4b0b3125

View File

@ -10,8 +10,6 @@ import (
"os"
"time"
"strings"
"sync"
"sync/atomic"
)
@ -221,8 +219,7 @@ func (logger *singleLogger) Log(level Level, logType string, messageParts ...str
}
// ensure we're capturing this logType
logTypeCleaned := strings.ToLower(strings.TrimSpace(logType))
capturing := (logger.Types["*"] || logger.Types[logTypeCleaned]) && !logger.ExcludedTypes["*"] && !logger.ExcludedTypes[logTypeCleaned]
capturing := (logger.Types["*"] || logger.Types[logType]) && !logger.ExcludedTypes["*"] && !logger.ExcludedTypes[logType]
if !capturing {
return
}