Log txnId and headers on error logging