Skip to content

Commit

Permalink
sync: decrease logging level
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco committed Jul 31, 2023
1 parent 1f4d139 commit 90b9d7b
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions site/cds_rdm/ldap/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,18 @@ def import_new_ldap_users(new_ldap_users, log_func):
# with different person id but same email.
if not ldap_user:
continue

if user_exists(ldap_user):
log_func(
"ldap_user_skipped_user_exists",
dict(
email=ldap_user["user_email"],
person_id=ldap_user["remote_account_person_id"],
),
)
# disabled, too noisy
# log_func(
# "ldap_user_skipped_user_exists",
# dict(
# email=ldap_user["user_email"],
# person_id=ldap_user["remote_account_person_id"],
# ),
# )
continue

email = ldap_user["user_email"]
username = ldap_user["user_username"]
employee_id = ldap_user["remote_account_person_id"]
Expand Down

0 comments on commit 90b9d7b

Please sign in to comment.