|
|
@ -35,6 +35,7 @@ import (
|
|
|
|
"tailscale.com/paths"
|
|
|
|
"tailscale.com/paths"
|
|
|
|
"tailscale.com/smallzstd"
|
|
|
|
"tailscale.com/smallzstd"
|
|
|
|
"tailscale.com/types/logger"
|
|
|
|
"tailscale.com/types/logger"
|
|
|
|
|
|
|
|
"tailscale.com/util/racebuild"
|
|
|
|
"tailscale.com/version"
|
|
|
|
"tailscale.com/version"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -396,7 +397,7 @@ func New(collection string) *Policy {
|
|
|
|
|
|
|
|
|
|
|
|
log.Printf("Program starting: v%v, Go %v: %#v",
|
|
|
|
log.Printf("Program starting: v%v, Go %v: %#v",
|
|
|
|
version.Long,
|
|
|
|
version.Long,
|
|
|
|
strings.TrimPrefix(runtime.Version(), "go"),
|
|
|
|
goVersion(),
|
|
|
|
os.Args)
|
|
|
|
os.Args)
|
|
|
|
log.Printf("LogID: %v", newc.PublicID)
|
|
|
|
log.Printf("LogID: %v", newc.PublicID)
|
|
|
|
if filchErr != nil {
|
|
|
|
if filchErr != nil {
|
|
|
@ -479,3 +480,11 @@ func newLogtailTransport(host string) *http.Transport {
|
|
|
|
|
|
|
|
|
|
|
|
return tr
|
|
|
|
return tr
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func goVersion() string {
|
|
|
|
|
|
|
|
v := strings.TrimPrefix(runtime.Version(), "go")
|
|
|
|
|
|
|
|
if racebuild.On {
|
|
|
|
|
|
|
|
return v + "-race"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return v
|
|
|
|
|
|
|
|
}
|
|
|
|