diff options
| author | Christine Dodrill <xe@tailscale.com> | 2021-02-03 15:10:16 -0500 |
|---|---|---|
| committer | Christine Dodrill <xe@tailscale.com> | 2021-02-03 15:10:16 -0500 |
| commit | a6a834b5fedcee470fdc44ae2c7407747341a529 (patch) | |
| tree | c9fe681f9539462fd52b4893498aa194fcdb7f60 | |
| parent | 8ec50db8efdbcb63a53e0a784c85fc2f3d204d4f (diff) | |
| download | tailscale-Xe/log-target-flag.tar.xz tailscale-Xe/log-target-flag.zip | |
logpolicy: shorten envvar nameXe/log-target-flag
Signed-off-by: Christine Dodrill <xe@tailscale.com>
| -rw-r--r-- | logpolicy/logpolicy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/logpolicy/logpolicy.go b/logpolicy/logpolicy.go index 4103b43c1..4f6ab774c 100644 --- a/logpolicy/logpolicy.go +++ b/logpolicy/logpolicy.go @@ -388,7 +388,7 @@ func New(collection string) *Policy { HTTPC: &http.Client{Transport: newLogtailTransport(logtail.DefaultHost)}, } - if val, ok := os.LookupEnv("TAILSCALE_LOG_TARGET_DO_NOT_SET_UNLESS_TOLD_TO"); ok { + if val, ok := os.LookupEnv("TAILSCALE_LOG_TARGET"); ok { log.Println("You have enabled a non-default log target. Doing without being told to by Tailscale staff or your network administrator will make getting support difficult.") c.BaseURL = val u, _ := url.Parse(val) |
