mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-01 09:32:08 +00:00
logpolicy: actually collect panics
(Written with Josh) For #2544 Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
committed by
Josh Bleecher Snyder
parent
7298e777d4
commit
3e039daf95
@@ -210,6 +210,9 @@ func run() error {
|
||||
logf = logger.RateLimitedFn(logf, 5*time.Second, 5, 100)
|
||||
|
||||
if args.cleanup {
|
||||
if os.Getenv("TS_PLEASE_PANIC") != "" {
|
||||
panic("TS_PLEASE_PANIC asked us to panic")
|
||||
}
|
||||
dns.Cleanup(logf, args.tunname)
|
||||
router.Cleanup(logf, args.tunname)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user