Reduce log level for something that's fine

Missing emails can happen when creating a service account, we shouldn't
log a warning for this.
This commit is contained in:
Sybren A. Stüvel 2017-12-15 11:23:16 +01:00
parent a7693aa78d
commit e0604fc217

View File

@ -191,8 +191,9 @@ def after_inserting_users(user_docs):
user_email = user_doc.get('email')
if not user_id or not user_email:
log.warning('User created with _id=%r and email=%r, unable to check organizations',
user_id, user_email)
# Missing emails can happen when creating a service account, it's fine.
log.info('User created with _id=%r and email=%r, unable to check organizations',
user_id, user_email)
continue
om.make_member_known(user_id, user_email)