From 8ebee05fbda1619b31f6d35f6eb6cd9b29616515 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 27 Mar 2020 08:27:36 -0700 Subject: [PATCH] cmd/tailscale: remove unnecessary logpolicy/logtail logging --- cmd/tailscale/tailscale.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/tailscale/tailscale.go b/cmd/tailscale/tailscale.go index aa288c843..95b2b2817 100644 --- a/cmd/tailscale/tailscale.go +++ b/cmd/tailscale/tailscale.go @@ -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, ",")