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.
Add logging guard.

Since we're logging three seperate times, we can't pass the message in a block.