truncate log messages to 2048 characters