Add exception to the log