Log exception as exception