Prefer to pass block when logging.

This follows the good practice listed on http://guides.rubyonrails.org/debugging_rails_applications.html#impact-of-logs-on-performance.
Since we are logging it twice, I couldn't find a way to split them up into two blocks since the variables are some what coupled.