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; } });