mirror of
https://gitee.com/johng/gf
synced 2026-07-05 13:22:16 +08:00
improve cookie feature for ghttp.Server
This commit is contained in:
@ -104,8 +104,10 @@ func (l *Logger) print(std io.Writer, lead string, values ...interface{}) {
|
||||
// It here uses CAP for performance and concurrent safety.
|
||||
if !l.init.Val() && l.init.Cas(false, true) {
|
||||
// It just initializes once for each logger.
|
||||
gtimer.AddOnce(l.config.RotateCheckInterval, l.rotateChecksTimely)
|
||||
intlog.Printf("logger initialized: every %s", l.config.RotateCheckInterval.String())
|
||||
if l.config.RotateSize > 0 || l.config.RotateExpire > 0 {
|
||||
gtimer.AddOnce(l.config.RotateCheckInterval, l.rotateChecksTimely)
|
||||
intlog.Printf("logger rotation initialized: every %s", l.config.RotateCheckInterval.String())
|
||||
}
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user