Skip to content

Commit

Permalink
Actually log the log
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Nov 21, 2023
1 parent f9331c3 commit 3b0baff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api_endpoints/v1_postcode_lookup/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ def get_postcode_response(request: Request):
postcode = request.path_params["postcode"]

# Log this request
POSTCODE_LOGGER.entry_class(
entry = POSTCODE_LOGGER.entry_class(
postcode=postcode,
dc_product=POSTCODE_LOGGER.dc_product.ec_api,
calls_devs_dc_api=True,
)
POSTCODE_LOGGER.log(entry)

try:
response = client.get_postcode_response(request, postcode)
Expand Down

0 comments on commit 3b0baff

Please sign in to comment.