From 3e53771878ab80562fe409ff98d98fb7b913a3aa Mon Sep 17 00:00:00 2001 From: Binod Pant Date: Fri, 18 Feb 2022 12:18:42 -0500 Subject: [PATCH] feat: super trivial log change to help see entity_id (#29935) to better log which changes we are making to which entity_id samlproviderdata --- common/djangoapps/third_party_auth/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/djangoapps/third_party_auth/tasks.py b/common/djangoapps/third_party_auth/tasks.py index a4f873f468..2b29ce20cc 100644 --- a/common/djangoapps/third_party_auth/tasks.py +++ b/common/djangoapps/third_party_auth/tasks.py @@ -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.