Add logging for transactions