How a Singleton Pattern Broke Our Django Logging
When wrapping resources in Singleton objects, understanding the lifecycle behavior of both the underlying resource and the calling code is key. Django loves to close logging handlers frequently during its boot cycle. Debugging log handlers is its own special kind of fun; read on for the schadenfreude.