tailscale/ipn
Andrew Dunham d1146dc701 ipn/ipnlocal: rate-limit diagnose logs in bugreport
We can log too quickly for logtail to catch up, even when we opt out of
log rate-limiting. When the user passes the --diagnose flag to
bugreport, we use a token bucket to control how many logs per second are
printed and sleep until we're able to write more.

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: If27672d66b621b589280bd0fe228de367ffcbd8f
2023-01-31 14:29:21 -05:00
..
ipnauth all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ipnlocal ipn/ipnlocal: rate-limit diagnose logs in bugreport 2023-01-31 14:29:21 -05:00
ipnserver all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ipnstate all: update copyright and license headers 2023-01-27 15:36:29 -08:00
localapi safesocket: remove the now unused WindowsLocalPort 2023-01-30 10:33:02 -08:00
policy all: update copyright and license headers 2023-01-27 15:36:29 -08:00
store all: update copyright and license headers 2023-01-27 15:36:29 -08:00
backend.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
doc.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
fake_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ipn_clone.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ipn_view.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
prefs_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
prefs.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
serve.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
store.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00