Loading services/TS29222_CAPIF_Logging_API_Invocation_API/api_invocation_logs/controllers/default_controller.py +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ def aef_id_logs_post(aef_id, body): # noqa: E501 :rtype: Union[InvocationLog, Tuple[InvocationLog, int], Tuple[InvocationLog, int, Dict[str, str]] """ current_app.logger.info("API Invocation Logs") current_app.logger.debug("API Invocation Logs") if request.is_json: body = InvocationLog.from_dict(request.get_json()) # noqa: E501 Loading services/TS29222_CAPIF_Logging_API_Invocation_API/api_invocation_logs/core/invocationlogs.py +5 −5 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ class LoggingInvocationOperations(Resource): 'api_prov_func_role': 'AEF', 'api_prov_func_id': request_aef_id}}}) if aef_res is None: current_app.logger.error("Exposer not exist") current_app.logger.warning("Exposer not exist") return not_found_error(detail="Exposer not exist", cause="Exposer id not found") if request_aef_id != body_aef_id: Loading @@ -51,7 +51,7 @@ class LoggingInvocationOperations(Resource): invoker_res = inv_col.find_one({'api_invoker_id': invoker_id}) if invoker_res is None: current_app.logger.error("Invoker not exist") current_app.logger.warning("Invoker not exist") return not_found_error(detail="Invoker not exist", cause="Invoker id not found") return None Loading @@ -67,7 +67,7 @@ class LoggingInvocationOperations(Resource): detail = "Service API not exist" cause = "Service API with id {} and name {} not found".format( api_id, api_name) current_app.logger.error(detail) current_app.logger.warning(detail) return not_found_error(detail=detail, cause=cause) return None Loading Loading @@ -111,7 +111,7 @@ class LoggingInvocationOperations(Resource): else: event = "SERVICE_API_INVOCATION_FAILURE" current_app.logger.info(event) current_app.logger.debug(event) invocation_log_base['logs'] = [log.to_dict()] invocationLogs = [invocation_log_base] RedisEvent(event, invocation_logs= Loading Loading @@ -143,7 +143,7 @@ class LoggingInvocationOperations(Resource): res = make_response(object=serialize_clean_camel_case( invocationlog), status=201) current_app.logger.debug("Invocation Logs response ready") current_app.logger.info("Invocation Logs response ready") apis_added = { log.api_id: log.api_name for log in invocationlog.logs} Loading Loading
services/TS29222_CAPIF_Logging_API_Invocation_API/api_invocation_logs/controllers/default_controller.py +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ def aef_id_logs_post(aef_id, body): # noqa: E501 :rtype: Union[InvocationLog, Tuple[InvocationLog, int], Tuple[InvocationLog, int, Dict[str, str]] """ current_app.logger.info("API Invocation Logs") current_app.logger.debug("API Invocation Logs") if request.is_json: body = InvocationLog.from_dict(request.get_json()) # noqa: E501 Loading
services/TS29222_CAPIF_Logging_API_Invocation_API/api_invocation_logs/core/invocationlogs.py +5 −5 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ class LoggingInvocationOperations(Resource): 'api_prov_func_role': 'AEF', 'api_prov_func_id': request_aef_id}}}) if aef_res is None: current_app.logger.error("Exposer not exist") current_app.logger.warning("Exposer not exist") return not_found_error(detail="Exposer not exist", cause="Exposer id not found") if request_aef_id != body_aef_id: Loading @@ -51,7 +51,7 @@ class LoggingInvocationOperations(Resource): invoker_res = inv_col.find_one({'api_invoker_id': invoker_id}) if invoker_res is None: current_app.logger.error("Invoker not exist") current_app.logger.warning("Invoker not exist") return not_found_error(detail="Invoker not exist", cause="Invoker id not found") return None Loading @@ -67,7 +67,7 @@ class LoggingInvocationOperations(Resource): detail = "Service API not exist" cause = "Service API with id {} and name {} not found".format( api_id, api_name) current_app.logger.error(detail) current_app.logger.warning(detail) return not_found_error(detail=detail, cause=cause) return None Loading Loading @@ -111,7 +111,7 @@ class LoggingInvocationOperations(Resource): else: event = "SERVICE_API_INVOCATION_FAILURE" current_app.logger.info(event) current_app.logger.debug(event) invocation_log_base['logs'] = [log.to_dict()] invocationLogs = [invocation_log_base] RedisEvent(event, invocation_logs= Loading Loading @@ -143,7 +143,7 @@ class LoggingInvocationOperations(Resource): res = make_response(object=serialize_clean_camel_case( invocationlog), status=201) current_app.logger.debug("Invocation Logs response ready") current_app.logger.info("Invocation Logs response ready") apis_added = { log.api_id: log.api_name for log in invocationlog.logs} Loading