Better support for log messages that contain Error objects