mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +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
Reference in a new issue