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.
I would probably keep the guard here. The block is getting really long and it's hard to follow.