Truncate log messages