From 171fddd5b684040eefe3249a9731be4d528588f1 Mon Sep 17 00:00:00 2001 From: SwiftyOS Date: Mon, 29 Apr 2024 11:13:17 +0200 Subject: [PATCH] Add logging statements for retrieving and updating configuration in config.ts --- src/routes/config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/config.ts b/src/routes/config.ts index 34a8ceb..4b3c14d 100644 --- a/src/routes/config.ts +++ b/src/routes/config.ts @@ -13,6 +13,7 @@ const router = express.Router(); router.get('/', async (_, res) => { try { const config = {}; + console.log('Retrieving configuration'); const providers = await getAvailableProviders(); @@ -55,6 +56,7 @@ router.post('/', async (req, res) => { OLLAMA: config.ollamaApiUrl, }, }; + console.log('Updated config:', updatedConfig); updateConfig(updatedConfig);