diff --git a/log/logsdk/logjson/option.go b/log/logsdk/logjson/option.go index ac0a2bb..5aa5af5 100644 --- a/log/logsdk/logjson/option.go +++ b/log/logsdk/logjson/option.go @@ -17,6 +17,7 @@ type Option interface { func WithBufferPool(pool synchelper.BytesBufferPool) Option { return optionFunc(func(cfg *config) { cfg.pool = pool + cfg.hasPool = true }) }