Fixed build logger race condition