Split long log messages to avoid truncation