From 9c6befc7b50d5b2a12d2864ccf9a8c5d559f9c12 Mon Sep 17 00:00:00 2001 From: Patrick Mueller Date: Sat, 24 Dec 2022 20:42:32 +0100 Subject: [PATCH] More debugging --- src/models/calendar/events/events.router.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/models/calendar/events/events.router.ts b/src/models/calendar/events/events.router.ts index ec040ac..0a6a0ff 100644 --- a/src/models/calendar/events/events.router.ts +++ b/src/models/calendar/events/events.router.ts @@ -8,8 +8,6 @@ import * as iCalService from './icalgenerator.service'; import {Guid} from 'guid-typescript'; import logger from '../../../middleware/logger'; -import * as dotenv from 'dotenv'; - /** * Router Definition @@ -61,7 +59,7 @@ eventsRouter.get('/ical', async (req: Request, res: Response) => { } catch (e: any) { let errorGuid = Guid.create().toString(); logger.error('Error handling a request: ' + e.message, {reference: errorGuid}); - logger.error('DB Username from dotenv: ' + process.env.DB_USER, {reference: errorGuid}); + logger.error('Stacktrace: ' + e.stack, {reference: errorGuid}); res.status(500).send({ 'status': 'PROCESSING_ERROR', 'message': 'Internal Server Error. Try again later.',