Fixed a bug where logs sent before the logger finishes setting up after returning from the background weren't getting added to the log gile