Fix the logging so it's not always spewing debug logs everywhere