Added debug logging to ICAT client