Fix #2409 - Limit log text to 4000 characters
Merge pull request #2411 from campbeb/fix2409

Fix #2409 - Limit log text to 4000 characters