Added debug logging to credential and Metadata Populator