Add in some logging to commit handling code