tailscale/types/logger
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
..
logger_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
logger.go ipn/ipnlocal: rate-limit diagnose logs in bugreport 2023-01-31 14:29:21 -05:00
rusage_stub.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
rusage_syscall.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
rusage.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tokenbucket.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00