use message-id instead of str(message) in logs

Using message-id in log messages makes it easier to identify individual
messages.
Merge pull request #71 from larsks/bug/messageid

use message-id instead of str(message) in logs