Move logging into sub-functions
Explicitly test for nil?
Un-break line

Now that we have relaxed the rubocop settings, it is nicer to have
the whole message in one string.