From d6fee00178cde02f36e026b844f0831e1e2d1f58 Mon Sep 17 00:00:00 2001 From: Krista Pratico Date: Fri, 22 Jan 2021 15:12:48 -0800 Subject: [PATCH] add new headers/params to logging policy allowlist (#16305) --- .../azure/ai/formrecognizer/_form_base_client.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_base_client.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_base_client.py index e450d5eaeeac..efd8e1737f2d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_base_client.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_base_client.py @@ -34,10 +34,13 @@ def __init__(self, endpoint, credential, **kwargs): http_logging_policy.allowed_header_names.update( { "Operation-Location", + "Location", "x-envoy-upstream-service-time", "apim-request-id", "Strict-Transport-Security", - "x-content-type-options" + "x-content-type-options", + "ms-azure-ai-errorcode", + "x-ms-cs-error-code" } ) http_logging_policy.allowed_query_params.update( @@ -46,7 +49,8 @@ def __init__(self, endpoint, credential, **kwargs): "locale", "language", "includeKeys", - "op" + "op", + "pages" } )