github.com/XiaoMi/Gaea@v1.2.5/proxy/server/var.go (about) 1 package server 2 3 import "sync/atomic" 4 5 // Process global variables. 6 var ( 7 ProcessGeneralLog uint32 8 ) 9 10 func OpenProcessGeneralQueryLog() bool { 11 return atomic.LoadUint32(&ProcessGeneralLog) == 1 12 }