diff --git a/microservices/gatewayApi/v1/routes/gateway.py b/microservices/gatewayApi/v1/routes/gateway.py index 9681b5c..0751e9a 100644 --- a/microservices/gatewayApi/v1/routes/gateway.py +++ b/microservices/gatewayApi/v1/routes/gateway.py @@ -336,8 +336,8 @@ def write_config(namespace: str) -> object: } } dp = get_data_plane(ns_attributes) + log.debug("[%s] - Initiating request to kube API %s" % (dp, route_payload)) rqst_url = app.config['data_planes'][dp]["kube-api"] - log.debug("[%s] - Initiating request to kube API" % (dp)) res = session.put(rqst_url + "/namespaces/%s/routes" % namespace, json=route_payload, auth=( app.config['kubeApiCreds']['kubeApiUser'], app.config['kubeApiCreds']['kubeApiPass'])) log.debug("[%s] - The kube API responded with %s" % (dp, res.status_code)) diff --git a/microservices/gatewayApi/v2/routes/gateway.py b/microservices/gatewayApi/v2/routes/gateway.py index af41e28..7401867 100644 --- a/microservices/gatewayApi/v2/routes/gateway.py +++ b/microservices/gatewayApi/v2/routes/gateway.py @@ -344,7 +344,6 @@ def write_config(namespace: str) -> object: } log.debug("[%s] - Initiating request to kube API %s" % (dp, route_payload)) rqst_url = app.config['data_planes'][dp]["kube-api"] - log.debug("[%s] - Initiating request to kube API" % (dp)) res = session.put(rqst_url + "/namespaces/%s/routes" % namespace, json=route_payload, auth=( app.config['kubeApiCreds']['kubeApiUser'], app.config['kubeApiCreds']['kubeApiPass'])) log.debug("[%s] - The kube API responded with %s" % (dp, res.status_code))