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:
@@ -191,7 +191,8 @@ def after_inserting_users(user_docs):
|
|||||||
user_email = user_doc.get('email')
|
user_email = user_doc.get('email')
|
||||||
|
|
||||||
if not user_id or not user_email:
|
if not user_id or not user_email:
|
||||||
log.warning('User created with _id=%r and email=%r, unable to check organizations',
|
# 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)
|
user_id, user_email)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user