feat: super trivial log change to help see entity_id (#29935)

to better log which changes we are making to which entity_id samlproviderdata
This commit is contained in:
Binod Pant
2022-02-18 12:18:42 -05:00
committed by GitHub
parent 68c906c623
commit 3e53771878

View File

@@ -87,10 +87,10 @@ def fetch_saml_metadata():
public_key, sso_url, expires_at = parse_metadata_xml(xml, entity_id)
changed = _update_data(entity_id, public_key, sso_url, expires_at)
if changed:
log.info("→ Created new record for SAMLProviderData")
log.info(f"→ Created new record for SAMLProviderData for entityID {entity_id}")
num_updated += 1
else:
log.info("→ Updated existing SAMLProviderData. Nothing has changed.")
log.info(f"→ Updated existing SAMLProviderData. Nothing has changed for entityID {entity_id}")
except (exceptions.SSLError, exceptions.HTTPError, exceptions.RequestException, MetadataParseError) as error:
# Catch and process exception in case of errors during fetching and processing saml metadata.
# Here is a description of each exception.