mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
embed: sync logger on server close
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
337a751180
commit
c76c696ed7
@ -312,6 +312,11 @@ func (e *Etcd) Close() {
|
|||||||
cancel()
|
cancel()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lg := e.GetLogger()
|
||||||
|
if lg != nil {
|
||||||
|
lg.Sync()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func stopServers(ctx context.Context, ss *servers) {
|
func stopServers(ctx context.Context, ss *servers) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user