Commit a56a1237 authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Add some testing logs

parent 63bd2988
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -73,10 +73,12 @@ class RegisterOperations:
        mycol = self.db.get_col_by_name(self.db.capif_users)

        try:

            current_app.logger.debug(f"Request Helper service to remove user related information")
            url = f"https://{self.config["ccf"]["url"]}{self.config["ccf"]["helper_remove_user"]}{uuid}"
            current_app.logger.debug(f"Url {url}")
            requests.delete(url, cert=("certs/superadmin.crt", "certs/superadmin.key"), verify="certs/ca_root.crt", timeout=int(os.getenv("TIMEOUT")))
            
            current_app.logger.debug(f"Removing User with uuid {uuid} from db")
            mycol.delete_one({"uuid": uuid})
            current_app.logger.debug(f"User with uuid {uuid} removed successfully")
            return jsonify(message="User removed successfully"), 204