Moved the log statement around, it was too verbose in the previous location