From e0604fc217ebef8dafcd3c6a589caa9ad846bfed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 15 Dec 2017 11:23:16 +0100 Subject: [PATCH] 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. --- pillar/api/users/hooks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pillar/api/users/hooks.py b/pillar/api/users/hooks.py index 46e4ef9a..d4a5271c 100644 --- a/pillar/api/users/hooks.py +++ b/pillar/api/users/hooks.py @@ -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)