cmd/tailscale: set logcfg.FlushDelay (#67)

Signed-off-by: Denton Gentry <dgentry@tailscale.com>

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
pull/68/head
Denton Gentry 2 years ago committed by GitHub
parent f7c662ca4a
commit d46d247535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,6 +13,7 @@ import (
"path/filepath"
"reflect"
"strings"
"time"
"github.com/tailscale/tailscale-android/jni"
"golang.org/x/sys/unix"
@ -328,7 +329,8 @@ func (b *backend) SetupLogs(logDir string, logID logtail.PrivateID) {
}
return w
},
HTTPC: &http.Client{Transport: logpolicy.NewLogtailTransport(logtail.DefaultHost)},
HTTPC: &http.Client{Transport: logpolicy.NewLogtailTransport(logtail.DefaultHost)},
FlushDelay: 2 * time.Minute,
}
filchOpts := filch.Options{

Loading…
Cancel
Save