X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fauth.py;fp=osm_nbi%2Fauth.py;h=023d2866b26a6754ba5a3a969499f22e0cdd7f90;hp=dc3d386ff03599dd8fc53dc9deb884fec23708b7;hb=15ec70643bdaa3ba84eccefbed73ab525bfd31fc;hpb=4836bacc5a3ef89cff93fd47240496baeb3c66ca diff --git a/osm_nbi/auth.py b/osm_nbi/auth.py index dc3d386..023d286 100644 --- a/osm_nbi/auth.py +++ b/osm_nbi/auth.py @@ -282,8 +282,8 @@ class Authenticator: self.backend.update_user({"_id": user_admin_id, "add_project_role_mappings": [{"project": pid, "role": role_id}]}) self.logger.info("Added role system admin to user='{}' project=admin".format(user_admin_id)) - except Exception: - pass + except Exception as e: + self.logger.error("Error in Authorization DataBase initialization: {}: {}".format(type(e).__name__, e)) self.load_operation_to_allowed_roles()