Added debug logging to xero gateway