cmd/tailscale: remove unnecessary logpolicy/logtail logging

This commit is contained in:
Brad Fitzpatrick 2020-03-27 08:27:36 -07:00
parent 80261b02ba
commit 8ebee05fbd
1 changed files with 0 additions and 4 deletions

View File

@ -21,7 +21,6 @@ import (
"github.com/peterbourgon/ff/v2/ffcli"
"github.com/tailscale/wireguard-go/wgcfg"
"tailscale.com/ipn"
"tailscale.com/logpolicy"
"tailscale.com/paths"
"tailscale.com/safesocket"
)
@ -117,13 +116,10 @@ var upArgs = struct {
}{}
func runUp(ctx context.Context, args []string) error {
pol := logpolicy.New("tailnode.log.tailscale.io")
if len(args) > 0 {
log.Fatalf("too many non-flag arguments: %q", args)
}
defer pol.Close()
var adv []wgcfg.CIDR
if upArgs.advertiseRoutes != "" {
advroutes := strings.Split(upArgs.advertiseRoutes, ",")