add transaction error logger

Change-Id: I43eae69449c64cf02a172239fbbe0ec29b14864e