remove error type from logMessages