mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-09 17:38:18 +09:00
c0fd9b60ed
The previous commit centralizes test log silencing in hscontrol/types/testlog.go, so the per-test SetGlobalLevel calls scattered across the batcher and db tests are now redundant. Most of them were also buggy: they restored to DebugLevel instead of capturing and restoring the prior level, polluting global state for subsequent tests in the same binary. Remove all such pairs from batcher_bench_test.go, batcher_concurrency_test.go, batcher_scale_bench_test.go, and suite_test.go, along with the now-unused zerolog imports. The one correct save/restore pattern in batcher_test.go is left untouched: it captures originalLevel via zerolog.GlobalLevel() and works transparently with the new ErrorLevel default.