|
|
@ -51,6 +51,7 @@ import (
|
|
|
|
"tailscale.com/types/logger"
|
|
|
|
"tailscale.com/types/logger"
|
|
|
|
"tailscale.com/types/logid"
|
|
|
|
"tailscale.com/types/logid"
|
|
|
|
"tailscale.com/types/nettype"
|
|
|
|
"tailscale.com/types/nettype"
|
|
|
|
|
|
|
|
"tailscale.com/util/clientmetric"
|
|
|
|
"tailscale.com/util/mak"
|
|
|
|
"tailscale.com/util/mak"
|
|
|
|
"tailscale.com/util/testenv"
|
|
|
|
"tailscale.com/util/testenv"
|
|
|
|
"tailscale.com/wgengine"
|
|
|
|
"tailscale.com/wgengine"
|
|
|
@ -640,6 +641,7 @@ func (s *Server) startLogger(closePool *closeOnErrorPool) error {
|
|
|
|
return w
|
|
|
|
return w
|
|
|
|
},
|
|
|
|
},
|
|
|
|
HTTPC: &http.Client{Transport: logpolicy.NewLogtailTransport(logtail.DefaultHost, s.netMon, s.logf)},
|
|
|
|
HTTPC: &http.Client{Transport: logpolicy.NewLogtailTransport(logtail.DefaultHost, s.netMon, s.logf)},
|
|
|
|
|
|
|
|
MetricsDelta: clientmetric.EncodeLogTailMetricsDelta,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
s.logtail = logtail.NewLogger(c, s.logf)
|
|
|
|
s.logtail = logtail.NewLogger(c, s.logf)
|
|
|
|
closePool.addFunc(func() { s.logtail.Shutdown(context.Background()) })
|
|
|
|
closePool.addFunc(func() { s.logtail.Shutdown(context.Background()) })
|
|
|
|