mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: print out data and time in log
Keep the default log setting consistent with other packages.
This commit is contained in:
parent
7e7bc76038
commit
0634cf2cfe
@ -44,7 +44,7 @@ type Logger interface {
|
||||
func SetLogger(l Logger) { raftLogger = l }
|
||||
|
||||
var (
|
||||
defaultLogger = &DefaultLogger{Logger: log.New(os.Stderr, "", 0)}
|
||||
defaultLogger = &DefaultLogger{Logger: log.New(os.Stderr, "", log.LstdFlags)}
|
||||
discardLogger = &DefaultLogger{Logger: log.New(ioutil.Discard, "", 0)}
|
||||
raftLogger = Logger(defaultLogger)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user