From 50dfb4c94a55b165eaebf9068d695a43a6d10f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20M=C3=BCller?= Date: Thu, 7 Oct 2021 14:11:40 +0200 Subject: [PATCH] API-32: Adding debugging infos --- .../rapla-middleware/icalgenerator/icalgenerator.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/rapla-middleware/icalgenerator/icalgenerator.service.ts b/src/models/rapla-middleware/icalgenerator/icalgenerator.service.ts index c9e41b1..c01ff0a 100644 --- a/src/models/rapla-middleware/icalgenerator/icalgenerator.service.ts +++ b/src/models/rapla-middleware/icalgenerator/icalgenerator.service.ts @@ -1,3 +1,5 @@ +import logger from '../../../middleware/logger'; + const fetch = require('node-fetch'); export const getiCalFile = async (user: string, file: string, showBlockers: boolean, electiveModule: string, profileModule: string): Promise => { @@ -98,6 +100,7 @@ export const removeElective = function (ical: iCalFile, chosenElective: string): let addEvent = true; electiveToRemove.forEach((module) => { if (event.includes(module.name)) { + logger.info('Removing elective ' + module.name); addEvent = false; } }); @@ -123,6 +126,7 @@ export const removeProfile = function (ical: iCalFile, chosenProfile: string): i profileToRemove.forEach((module) => { module.names.forEach((name) => { if (event.includes(name)) { + logger.info('Removing profile ' + name); addEvent = false; } });