mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-27 10:47:35 +00:00
logpolicy: rename target env var to TS_LOG_TARGET (#1267)
Signed-Off-By: Christine Dodrill <xe@tailscale.com>
This commit is contained in:
parent
f7eed25bb9
commit
2f0cb98e50
@ -388,7 +388,7 @@ func New(collection string) *Policy {
|
|||||||
HTTPC: &http.Client{Transport: newLogtailTransport(logtail.DefaultHost)},
|
HTTPC: &http.Client{Transport: newLogtailTransport(logtail.DefaultHost)},
|
||||||
}
|
}
|
||||||
|
|
||||||
if val, ok := os.LookupEnv("TAILSCALE_LOG_TARGET"); ok {
|
if val, ok := os.LookupEnv("TS_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.")
|
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
|
c.BaseURL = val
|
||||||
u, _ := url.Parse(val)
|
u, _ := url.Parse(val)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user