Though `DeferLogs` is only called in a few spots, logger.print is called in many and can cause an edge-case race condition with swapping the logger