From ebfbc987d78e2e726ccb217640e5ba0b4c1b86f3 Mon Sep 17 00:00:00 2001 From: Padmaja <52911293+padms@users.noreply.github.com> Date: Fri, 3 Nov 2023 13:15:21 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20Some=20logging=20#1864?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- search/IndexSanityContent/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/search/IndexSanityContent/index.ts b/search/IndexSanityContent/index.ts index f1af79085..3b1f51bc8 100644 --- a/search/IndexSanityContent/index.ts +++ b/search/IndexSanityContent/index.ts @@ -1,4 +1,5 @@ import { AzureFunction, Context, HttpRequest } from '@azure/functions' +//import { dotenv } from 'dotenv-azure' // eslint-disable-next-line import/no-named-as-default import DotenvAzure from 'dotenv-azure' import { indexEvents } from './events' @@ -29,8 +30,10 @@ const httpTrigger: AzureFunction = async function (context: Context, req: HttpRe allowEmptyValues: true, debug: false, }) + //await dotenv.config() const logger = context.log + logger.info(JSON.stringify(req.body)) const language = pipe(languageFromIso(req.body.language), languageOrDefault) const getIndex = pipe(