mirror of
https://github.com/safing/portbase
synced 2025-09-02 02:29:59 +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 {
|
func fastcheckLevel(level severity) bool {
|
||||||
if uint32(level) < atomic.LoadUint32(logLevel) {
|
return uint32(level) >= atomic.LoadUint32(logLevel)
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue