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.
Reduce coupling of logging guard with the severity of the log message.
Add logging guard.

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