mirror of
https://github.com/safing/portbase
synced 2026-04-28 11:50:02 +00:00
Merge pull request #7 from safing/feature/speedup_fastcheckLevel
This commit is contained in:
commit
07310d605a
1 changed files with 1 additions and 4 deletions
|
|
@ -216,8 +216,5 @@ func ErrorTracef(ctx context.Context, things ...interface{}) (ok bool) {
|
|||
}
|
||||
|
||||
func fastcheckLevel(level severity) bool {
|
||||
if uint32(level) < atomic.LoadUint32(logLevel) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
return uint32(level) >= atomic.LoadUint32(logLevel)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue