fix debug setting from config not actually toggling debug logging off