Fix for issue #7. Logging throws error if content is over 100k