set Index.LogOutput to be Server's as well as handler

This commit is contained in:
jaffee 2016-12-12 10:45:43 -06:00
parent d996e9d0b6
commit ffcb4c0c10

View file

@ -108,6 +108,7 @@ func (s *Server) Open() error {
s.Handler.Cluster = s.Cluster
s.Handler.Executor = e
s.Handler.LogOutput = s.LogOutput
s.Index.LogOutput = s.LogOutput
// Serve HTTP.
go func() { http.Serve(ln, s.Handler) }()