diff --git a/internal/logging/accesslog/access_logger.go b/internal/logging/accesslog/access_logger.go index ecae79c4..989f509e 100644 --- a/internal/logging/accesslog/access_logger.go +++ b/internal/logging/accesslog/access_logger.go @@ -76,7 +76,7 @@ const ( errBurst = 5 ) -var lineBufPool = synk.GetBytesPool() +var lineBufPool = synk.GetBytesPoolWithUniqueMemory() func NewAccessLogger(parent task.Parent, cfg AnyConfig) (*AccessLogger, error) { io, err := cfg.IO() diff --git a/internal/logging/accesslog/rotate.go b/internal/logging/accesslog/rotate.go index b472e252..88be872f 100644 --- a/internal/logging/accesslog/rotate.go +++ b/internal/logging/accesslog/rotate.go @@ -66,7 +66,7 @@ type lineInfo struct { Size int64 // Size of this line } -var rotateBytePool = synk.GetBytesPool() +var rotateBytePool = synk.GetBytesPoolWithUniqueMemory() // rotateLogFile rotates the log file based on the retention policy. // It returns the result of the rotation and an error if any.