forked from External/ergo
remove log type sanitization
This commit is contained in:
parent
867b233585
commit
6e4b0b3125
1 changed files with 1 additions and 4 deletions
|
|
@ -10,8 +10,6 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"strings"
|
|
||||||
|
|
||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
)
|
)
|
||||||
|
|
@ -221,8 +219,7 @@ func (logger *singleLogger) Log(level Level, logType string, messageParts ...str
|
||||||
}
|
}
|
||||||
|
|
||||||
// ensure we're capturing this logType
|
// ensure we're capturing this logType
|
||||||
logTypeCleaned := strings.ToLower(strings.TrimSpace(logType))
|
capturing := (logger.Types["*"] || logger.Types[logType]) && !logger.ExcludedTypes["*"] && !logger.ExcludedTypes[logType]
|
||||||
capturing := (logger.Types["*"] || logger.Types[logTypeCleaned]) && !logger.ExcludedTypes["*"] && !logger.ExcludedTypes[logTypeCleaned]
|
|
||||||
if !capturing {
|
if !capturing {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue