Updated logging to include the key of the credential