truncate log messages to 2048 characters
Merge pull request #306 from cantino/truncate_agent_log_messages

truncate log messages to 2048 characters