Log error when unable to update home project

This commit is contained in:
Sybren A. Stüvel 2016-11-11 12:44:47 +01:00
parent b9e27a4cbf
commit a13937e500

View File

@ -185,7 +185,7 @@ def after_inserting_project(project, db_user):
result = projects_collection.update_one({'_id': project_id},
{'$set': remove_private_keys(project)})
if result.matched_count != 1:
log.warning('Unable to update project %s: %s', project_id, result.raw_result)
log.error('Unable to update project %s: %s', project_id, result.raw_result)
abort_with_error(500)