logError(): the message string is passed by reference (was: copying).