fix(access_log): fix slice out-of-bound panic on log rotation

This commit is contained in:
yusing
2025-12-16 17:20:59 +08:00
parent 6f9f995100
commit e44ecc0ccc
2 changed files with 31 additions and 20 deletions

View File

@@ -94,6 +94,7 @@ const (
)
var bytesPool = synk.GetUnsizedBytesPool()
var sizedPool = synk.GetSizedBytesPool()
func NewAccessLogger(parent task.Parent, cfg AnyConfig) (AccessLogger, error) {
writers, err := cfg.Writers()