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 7e548d5097
commit 43d4c0c670

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) }()