This commit is contained in:
parent
e08cd70eef
commit
5dd3953542
|
@ -8,6 +8,8 @@ import * as iCalService from './icalgenerator.service';
|
||||||
import {Guid} from 'guid-typescript';
|
import {Guid} from 'guid-typescript';
|
||||||
import logger from '../../../middleware/logger';
|
import logger from '../../../middleware/logger';
|
||||||
|
|
||||||
|
import * as dotenv from 'dotenv';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Router Definition
|
* Router Definition
|
||||||
|
@ -59,6 +61,7 @@ eventsRouter.get('/ical', async (req: Request, res: Response) => {
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
let errorGuid = Guid.create().toString();
|
let errorGuid = Guid.create().toString();
|
||||||
logger.error('Error handling a request: ' + e.message, {reference: errorGuid});
|
logger.error('Error handling a request: ' + e.message, {reference: errorGuid});
|
||||||
|
logger.error('DB Username from dotenv: ' + process.env.DB_USER, {reference: errorGuid});
|
||||||
res.status(500).send({
|
res.status(500).send({
|
||||||
'status': 'PROCESSING_ERROR',
|
'status': 'PROCESSING_ERROR',
|
||||||
'message': 'Internal Server Error. Try again later.',
|
'message': 'Internal Server Error. Try again later.',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user