diff --git a/mempool/mempool.go b/mempool/mempool.go index 443592d..d72e15b 100644 --- a/mempool/mempool.go +++ b/mempool/mempool.go @@ -84,6 +84,8 @@ func NewMempool( // Create logger to throw away logs // We do this so we don't have to add guards around every log operation m.logger = slog.New(slog.NewJSONHandler(io.Discard, nil)) + } else { + m.logger = logger } // TODO: replace this with purging based on on-chain TXs // Schedule initial mempool expired cleanup