From d011e0758f50af5e865a19be2f12d941059cbdf5 Mon Sep 17 00:00:00 2001 From: Nattaphong Klinjan Date: Thu, 8 Aug 2024 16:06:45 +0200 Subject: [PATCH] Debug SAF dokumenter --- src/pages/api/dokumenter/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/api/dokumenter/index.ts b/src/pages/api/dokumenter/index.ts index b43c5331..1a44deee 100644 --- a/src/pages/api/dokumenter/index.ts +++ b/src/pages/api/dokumenter/index.ts @@ -43,6 +43,8 @@ export const handleDokumenter: NextApiHandler = async (req, res) } = await hentDokumentOversikt(await session.apiToken(safAudience), fnr); jposter = journalposter; + console.log(journalposter); + logger.info(`Hentet ${jposter.length} journalposter`); } catch (errors) { logger.error(`Feil fra SAF: ${errors.response}`);