Do not error when logging long module names.

Fixes #35.

-------

I'll add some tests for the logging when I have a free minute.