From 9d9a2d5d618fb35ebb3f674d08c634611a0a80f4 Mon Sep 17 00:00:00 2001 From: Russell Vinegar Date: Wed, 20 Nov 2024 16:19:25 -0800 Subject: [PATCH] fix log entry --- microservices/gatewayApi/v2/routes/gateway.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/microservices/gatewayApi/v2/routes/gateway.py b/microservices/gatewayApi/v2/routes/gateway.py index 5d2fd10..a3e4f16 100644 --- a/microservices/gatewayApi/v2/routes/gateway.py +++ b/microservices/gatewayApi/v2/routes/gateway.py @@ -354,7 +354,13 @@ def write_config(namespace: str) -> object: }, "certificates": certs } - route_payload_log = route_payload['hosts'] + route_payload['select_tag'] + route_payload['ns_attributes'] + route_payload['overrides'] + # Create a copy without certificates for logging + route_payload_log = { + "hosts": host_list, + "select_tag": selectTag, + "ns_attributes": ns_attributes.getAttrs(), + "overrides": route_payload["overrides"] + } log.debug("[%s] - Initiating request to kube API %s" % (dp, route_payload_log)) rqst_url = app.config['data_planes'][dp]["kube-api"] res = session.put(rqst_url + "/namespaces/%s/routes" % namespace, json=route_payload, auth=(