Skip to content

Commit

Permalink
fix log entry
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyjux committed Nov 21, 2024
1 parent 27f6006 commit 9d9a2d5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion microservices/gatewayApi/v2/routes/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=(
Expand Down

0 comments on commit 9d9a2d5

Please sign in to comment.