Putting inner loop logging under a verbose flag