mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-02 22:21:44 +00:00
p2p README update
This commit is contained in:
15
mempool/log.go
Normal file
15
mempool/log.go
Normal file
@ -0,0 +1,15 @@
|
||||
package mempool
|
||||
|
||||
import (
|
||||
"github.com/op/go-logging"
|
||||
)
|
||||
|
||||
var log = logging.MustGetLogger("mempool")
|
||||
|
||||
func init() {
|
||||
logging.SetFormatter(logging.MustStringFormatter("[%{level:.1s}] %{message}"))
|
||||
}
|
||||
|
||||
func SetMempoolLogger(l *logging.Logger) {
|
||||
log = l
|
||||
}
|
Reference in New Issue
Block a user