test truncation and log entry message