Elastic: search indexing logging tweaks

This commit is contained in:
2018-01-05 15:24:47 +01:00
parent 0b6969bf0c
commit f6cf8d29f0
3 changed files with 5 additions and 3 deletions

View File

@@ -42,6 +42,9 @@ def reset_index(indices):
def _reindex_users():
db = current_app.db()
users_coll = db['users']
# Note that this also finds service accounts, which are filtered out
# in prepare_user_data(…)
users = users_coll.find()
user_count = users.count()