cmd/derper: remove support for logtail logging
There aren't really any useful logs produced by derper.
"tailscale.com/atomicfile"
"tailscale.com/derp"
"tailscale.com/derp/derphttp"
- "tailscale.com/logpolicy"
"tailscale.com/metrics"
"tailscale.com/net/stun"
"tailscale.com/tsweb"
certMode = flag.String("certmode", "letsencrypt", "mode for getting a cert. possible options: manual, letsencrypt")
certDir = flag.String("certdir", tsweb.DefaultCertDir("derper-certs"), "directory to store LetsEncrypt certs, if addr's port is :443")
hostname = flag.String("hostname", "derp.tailscale.com", "LetsEncrypt host name, if addr's port is :443")
- logCollection = flag.String("logcollection", "", "If non-empty, logtail collection to log to")
runSTUN = flag.Bool("stun", true, "whether to run a STUN server. It will bind to the same IP (if any) as the --addr flag value.")
meshPSKFile = flag.String("mesh-psk-file", defaultMeshPSKFile(), "if non-empty, path to file containing the mesh pre-shared key file. It should contain some hex string; whitespace is trimmed.")
@@ -135,7 +133,6 @@ func main() {
flag.Parse()
if *dev {
- *logCollection = ""
*addr = ":3340" // above the keys DERP
log.Printf("Running in dev mode.")
tsweb.DevMode = true
@@ -146,12 +143,6 @@ func main() {
log.Fatalf("invalid server address: %v", err)
}
- var logPol *logpolicy.Policy
- if *logCollection != "" {
- logPol = logpolicy.New(*logCollection)
- log.SetOutput(logPol.Logtail)
- }
-
cfg := loadConfig()
serveTLS := tsweb.IsProd443(*addr) || *certMode == "manual"
