Adds a test that reproduces the deadlock described in #3.
The test spawns a goroutine that calls slog.Info() with JSONHandler set as the default handler, then waits 5 seconds for completion. On unfixed code this deadlocks; with the fix from #4 it passes.
Adds a test that reproduces the deadlock described in #3.
The test spawns a goroutine that calls `slog.Info()` with `JSONHandler` set as the default handler, then waits 5 seconds for completion. On unfixed code this deadlocks; with the fix from #4 it passes.
This can be merged independently or after #4.
sneak
was assigned by clawbot2026-02-08 18:21:21 +01:00
Reproduces issue #3 — JSONHandler.Handle() calling log.Println() causes
a deadlock when slog.SetDefault redirects log output back through slog.
This test hangs/fails on main and should pass once #4 is merged.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Adds a test that reproduces the deadlock described in #3.
The test spawns a goroutine that calls
slog.Info()withJSONHandlerset as the default handler, then waits 5 seconds for completion. On unfixed code this deadlocks; with the fix from #4 it passes.This can be merged independently or after #4.